juncai | 17fc853 | 2016-06-02 06:45:50 | [diff] [blame] | 1 | // 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" |
juncai | 17fc853 | 2016-06-02 06:45:50 | [diff] [blame] | 9 | |
| 10 | class ChooserController; |
| 11 | |
| 12 | namespace content { |
| 13 | class WebContents; |
| 14 | } |
| 15 | |
| 16 | class ChromeExtensionChooserDialog { |
| 17 | public: |
| 18 | explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) |
| 19 | : web_contents_(web_contents) {} |
| 20 | ~ChromeExtensionChooserDialog() {} |
| 21 | |
juncai | 474e1e1 | 2016-06-29 01:56:46 | [diff] [blame] | 22 | void ShowDialog(std::unique_ptr<ChooserController> chooser_controller) const; |
juncai | 17fc853 | 2016-06-02 06:45:50 | [diff] [blame] | 23 | |
| 24 | private: |
juncai | 474e1e1 | 2016-06-29 01:56:46 | [diff] [blame] | 25 | void ShowDialogImpl( |
| 26 | std::unique_ptr<ChooserController> chooser_controller) const; |
juncai | 65ba5f9 | 2016-06-10 04:34:54 | [diff] [blame] | 27 | |
juncai | 17fc853 | 2016-06-02 06:45:50 | [diff] [blame] | 28 | content::WebContents* web_contents_; |
| 29 | |
| 30 | DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); |
| 31 | }; |
| 32 | |
| 33 | #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |