OLD | NEW |
(Empty) | |
| 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 EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_ |
| 6 #define EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 class ChooserController; |
| 11 class GURL; |
| 12 |
| 13 namespace content { |
| 14 class WebContents; |
| 15 } |
| 16 |
| 17 namespace extensions { |
| 18 |
| 19 // ExtensionChooserDialog class is an interface for some functions that need |
| 20 // to be called on the extensions side, but the implemention is done on the |
| 21 // Chrome side. |
| 22 class ExtensionChooserDialog { |
| 23 public: |
| 24 explicit ExtensionChooserDialog(content::WebContents* web_contents); |
| 25 virtual ~ExtensionChooserDialog(); |
| 26 |
| 27 void OpenHelpCenterUrl() const; |
| 28 |
| 29 virtual void ShowDialog(ChooserController* chooser_controller) const; |
| 30 |
| 31 virtual GURL GetHelpCenterUrl() const = 0; |
| 32 |
| 33 protected: |
| 34 content::WebContents* web_contents() const { return web_contents_; } |
| 35 |
| 36 private: |
| 37 content::WebContents* web_contents_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ExtensionChooserDialog); |
| 40 }; |
| 41 |
| 42 } // namespace extensions |
| 43 |
| 44 #endif // EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_ |
OLD | NEW |