Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / extensions / extension_install_ui_default.h
blob487f25cb51be874eec3fc7d960cb86478ef85224
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "extensions/browser/install/extension_install_ui.h"
12 namespace content {
13 class BrowserContext;
16 class Profile;
18 class ExtensionInstallUIDefault : public extensions::ExtensionInstallUI {
19 public:
20 explicit ExtensionInstallUIDefault(content::BrowserContext* context);
21 ~ExtensionInstallUIDefault() override;
23 // ExtensionInstallUI:
24 void OnInstallSuccess(const extensions::Extension* extension,
25 const SkBitmap* icon) override;
26 void OnInstallFailure(const extensions::CrxInstallError& error) override;
27 void SetUseAppInstalledBubble(bool use_bubble) override;
28 void OpenAppInstalledUI(const std::string& app_id) override;
29 void SetSkipPostInstallUI(bool skip_ui) override;
30 gfx::NativeWindow GetDefaultInstallDialogParent() override;
32 private:
33 Profile* profile_;
35 // Whether or not to show the default UI after completing the installation.
36 bool skip_post_install_ui_;
38 // Used to undo theme installation.
39 std::string previous_theme_id_;
40 bool previous_using_system_theme_;
42 // Whether to show an installed bubble on app install, or use the default
43 // action of opening a new tab page.
44 bool use_app_installed_bubble_;
46 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUIDefault);
49 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_