Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/browser/extensions/extension_install_ui_default.h

Issue 10683003: Moved CrxInstaller and CrxInstallerError into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
7 7
8 #include "chrome/browser/extensions/extension_install_ui.h" 8 #include "chrome/browser/extensions/extension_install_ui.h"
9 9
10 class InfoBarDelegate; 10 class InfoBarDelegate;
11 class Profile; 11 class Profile;
12 class TabContents; 12 class TabContents;
13 13
14 class ExtensionInstallUIDefault : public ExtensionInstallUI { 14 class ExtensionInstallUIDefault : public ExtensionInstallUI {
15 public: 15 public:
16 explicit ExtensionInstallUIDefault(Profile* profile); 16 explicit ExtensionInstallUIDefault(Profile* profile);
17 virtual ~ExtensionInstallUIDefault(); 17 virtual ~ExtensionInstallUIDefault();
18 18
19 // ExtensionInstallUI implementation: 19 // ExtensionInstallUI implementation:
20 virtual void OnInstallSuccess(const extensions::Extension* extension, 20 virtual void OnInstallSuccess(const extensions::Extension* extension,
21 SkBitmap* icon) OVERRIDE; 21 SkBitmap* icon) OVERRIDE;
22 virtual void OnInstallFailure(const CrxInstallerError& error) OVERRIDE; 22 virtual void OnInstallFailure(
23 const extensions::CrxInstallerError& error) OVERRIDE;
23 virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE; 24 virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE;
24 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE; 25 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE;
25 26
26 private: 27 private:
27 // Shows an infobar for a newly-installed theme. previous_theme_id should be 28 // Shows an infobar for a newly-installed theme. previous_theme_id should be
28 // empty if the previous theme was the system/default theme. 29 // empty if the previous theme was the system/default theme.
29 static void ShowThemeInfoBar(const std::string& previous_theme_id, 30 static void ShowThemeInfoBar(const std::string& previous_theme_id,
30 bool previous_using_native_theme, 31 bool previous_using_native_theme,
31 const extensions::Extension* new_theme, 32 const extensions::Extension* new_theme,
32 Profile* profile); 33 Profile* profile);
(...skipping 14 matching lines...) Expand all
47 bool previous_using_native_theme_; 48 bool previous_using_native_theme_;
48 49
49 // Whether to show an installed bubble on app install, or use the default 50 // Whether to show an installed bubble on app install, or use the default
50 // action of opening a new tab page. 51 // action of opening a new tab page.
51 bool use_app_installed_bubble_; 52 bool use_app_installed_bubble_;
52 53
53 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_android.cc ('k') | chrome/browser/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698