Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / extensions / extension_install_ui_default.h
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.
4
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "extensions/browser/install/extension_install_ui.h"
11
12 namespace content {
13 class BrowserContext;
14 }
15
16 class Profile;
17
18 class ExtensionInstallUIDefault : public extensions::ExtensionInstallUI {
19  public:
20   explicit ExtensionInstallUIDefault(content::BrowserContext* context);
21   ~ExtensionInstallUIDefault() override;
22
23   // ExtensionInstallUI:
24   void OnInstallSuccess(const extensions::Extension* extension,
25                         const SkBitmap* icon) override;
26   void OnInstallFailure(const extensions::CrxInstallerError& 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;
31
32  private:
33   Profile* profile_;
34
35   // Whether or not to show the default UI after completing the installation.
36   bool skip_post_install_ui_;
37
38   // Used to undo theme installation.
39   std::string previous_theme_id_;
40   bool previous_using_system_theme_;
41
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_;
45
46   DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUIDefault);
47 };
48
49 #endif  // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_