blob: a465d5d48ab212b1ae3c51f21ddc69df4207b9c3 [file] [log] [blame]
[email protected]c82da8c42012-06-08 19:49:111// 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
[email protected]dc63aab2013-02-12 06:15:105#ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
[email protected]c82da8c42012-06-08 19:49:117
8#include "chrome/browser/extensions/extension_install_ui.h"
9
10class InfoBarDelegate;
[email protected]32fc4ff72012-06-15 21:50:0111class Profile;
[email protected]591a59f2012-10-11 01:16:2312
13namespace content {
14class WebContents;
15}
[email protected]c82da8c42012-06-08 19:49:1116
17class ExtensionInstallUIDefault : public ExtensionInstallUI {
18 public:
[email protected]619f86182012-07-03 21:30:1819 explicit ExtensionInstallUIDefault(Profile* profile);
[email protected]c82da8c42012-06-08 19:49:1120 virtual ~ExtensionInstallUIDefault();
21
22 // ExtensionInstallUI implementation:
23 virtual void OnInstallSuccess(const extensions::Extension* extension,
24 SkBitmap* icon) OVERRIDE;
[email protected]bf3d9df2012-07-24 23:20:2725 virtual void OnInstallFailure(
26 const extensions::CrxInstallerError& error) OVERRIDE;
[email protected]c82da8c42012-06-08 19:49:1127 virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE;
28 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE;
29
30 private:
[email protected]c82da8c42012-06-08 19:49:1131 // Whether or not to show the default UI after completing the installation.
32 bool skip_post_install_ui_;
33
34 // Used to undo theme installation.
35 std::string previous_theme_id_;
36 bool previous_using_native_theme_;
37
38 // Whether to show an installed bubble on app install, or use the default
39 // action of opening a new tab page.
40 bool use_app_installed_bubble_;
41
42 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
43};
44
[email protected]dc63aab2013-02-12 06:15:1045#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_