| Index: extensions/browser/ui/extension_chooser_dialog.h
|
| diff --git a/extensions/browser/ui/extension_chooser_dialog.h b/extensions/browser/ui/extension_chooser_dialog.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..294f5bfba698b51df2991bc8dd207a83d487e39f
|
| --- /dev/null
|
| +++ b/extensions/browser/ui/extension_chooser_dialog.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
|
| +#define EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +class ChooserController;
|
| +class GURL;
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace extensions {
|
| +
|
| +// ExtensionChooserDialog class is an interface for some functions that need
|
| +// to be called on the extensions side, but the implemention is done on the
|
| +// Chrome side.
|
| +class ExtensionChooserDialog {
|
| + public:
|
| + explicit ExtensionChooserDialog(content::WebContents* web_contents);
|
| + virtual ~ExtensionChooserDialog();
|
| +
|
| + void OpenHelpCenterUrl() const;
|
| +
|
| + virtual void ShowDialog(ChooserController* chooser_controller) const;
|
| +
|
| + virtual GURL GetHelpCenterUrl() const = 0;
|
| +
|
| + protected:
|
| + content::WebContents* web_contents() const { return web_contents_; }
|
| +
|
| + private:
|
| + content::WebContents* web_contents_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ExtensionChooserDialog);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
|
|
|