blob: bf02898c29e14ddf7e8a1c21093c5eeb2d195462 [file] [log] [blame]
juncai17fc8532016-06-02 06:45:501// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_
6#define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_
7
8#include "base/macros.h"
juncai17fc8532016-06-02 06:45:509
10class ChooserController;
11
12namespace content {
13class WebContents;
14}
15
16class ChromeExtensionChooserDialog {
17 public:
18 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents)
19 : web_contents_(web_contents) {}
20 ~ChromeExtensionChooserDialog() {}
21
juncai474e1e12016-06-29 01:56:4622 void ShowDialog(std::unique_ptr<ChooserController> chooser_controller) const;
juncai17fc8532016-06-02 06:45:5023
24 private:
juncai474e1e12016-06-29 01:56:4625 void ShowDialogImpl(
26 std::unique_ptr<ChooserController> chooser_controller) const;
juncai65ba5f92016-06-10 04:34:5427
juncai17fc8532016-06-02 06:45:5028 content::WebContents* web_contents_;
29
30 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog);
31};
32
33#endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_