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

Side by Side Diff: chrome/browser/extensions/extension_install_ui.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_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
30 class ExtensionInstallUI { 30 class ExtensionInstallUI {
31 public: 31 public:
32 static ExtensionInstallUI* Create(Profile* profile); 32 static ExtensionInstallUI* Create(Profile* profile);
33 33
34 virtual ~ExtensionInstallUI(); 34 virtual ~ExtensionInstallUI();
35 35
36 // Called when an extension was installed. 36 // Called when an extension was installed.
37 virtual void OnInstallSuccess(const extensions::Extension* extension, 37 virtual void OnInstallSuccess(const extensions::Extension* extension,
38 SkBitmap* icon) = 0; 38 SkBitmap* icon) = 0;
39 // Called when an extension failed to install. 39 // Called when an extension failed to install.
40 virtual void OnInstallFailure(const CrxInstallerError& error) = 0; 40 virtual void OnInstallFailure(const extensions::CrxInstallerError& error) = 0;
41 41
42 // Whether or not to show the default UI after completing the installation. 42 // Whether or not to show the default UI after completing the installation.
43 virtual void SetSkipPostInstallUI(bool skip_ui) = 0; 43 virtual void SetSkipPostInstallUI(bool skip_ui) = 0;
44 44
45 // TODO(asargent) Normally we navigate to the new tab page when an app is 45 // TODO(asargent) Normally we navigate to the new tab page when an app is
46 // installed, but we're experimenting with instead showing a bubble when 46 // installed, but we're experimenting with instead showing a bubble when
47 // an app is installed which points to the new tab button. This may become 47 // an app is installed which points to the new tab button. This may become
48 // the default behavior in the future. 48 // the default behavior in the future.
49 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; 49 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0;
50 50
(...skipping 17 matching lines...) Expand all
68 68
69 Profile* profile() { return profile_; } 69 Profile* profile() { return profile_; }
70 70
71 protected: 71 protected:
72 ExtensionInstallUI(); 72 ExtensionInstallUI();
73 73
74 Profile* profile_; 74 Profile* profile_;
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.cc ('k') | chrome/browser/extensions/extension_install_ui_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698