| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 class ChooserController; | 10 class ChooserController; |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 | 15 |
| 16 class ChromeExtensionChooserDialog { | 16 class ChromeExtensionChooserDialog { |
| 17 public: | 17 public: |
| 18 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) | 18 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) |
| 19 : web_contents_(web_contents) {} | 19 : web_contents_(web_contents) {} |
| 20 ~ChromeExtensionChooserDialog() {} | 20 ~ChromeExtensionChooserDialog() {} |
| 21 | 21 |
| 22 content::WebContents* web_contents() const { return web_contents_; } | |
| 23 | |
| 24 void ShowDialog(ChooserController* chooser_controller) const; | 22 void ShowDialog(ChooserController* chooser_controller) const; |
| 25 | 23 |
| 26 private: | 24 private: |
| 27 void ShowDialogImpl(ChooserController* chooser_controller) const; | 25 void ShowDialogImpl(ChooserController* chooser_controller) const; |
| 28 | 26 |
| 29 content::WebContents* web_contents_; | 27 content::WebContents* web_contents_; |
| 30 | 28 |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); | 29 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); |
| 32 }; | 30 }; |
| 33 | 31 |
| 34 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 32 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| OLD | NEW |