diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 01:07:42 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 01:07:42 +0000 |
commit | 4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f (patch) | |
tree | 69a1e9f78b3a5fa8b909cfab336826b09c44235f /chrome/browser/extensions/extensions_service.h | |
parent | 5085ee0b4bfbe4625e63ee6975bb95702e13e0aa (diff) | |
download | chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.zip chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.tar.gz chromium_src-4a19063d1459a4c9c8c4c50ed86eb9048f69ea3f.tar.bz2 |
This is the first pass at themes.
This CL is paired with http://codereview.chromium.org/67284
This CL (for commit purposes) includes http://codereview.chromium.org/67284
BUG=4463,11232,11233,11234,11235
Review URL: http://codereview.chromium.org/99030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.h')
-rw-r--r-- | chrome/browser/extensions/extensions_service.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h index 9a83c99..31b8f90e 100644 --- a/chrome/browser/extensions/extensions_service.h +++ b/chrome/browser/extensions/extensions_service.h @@ -51,8 +51,15 @@ class ExtensionsServiceFrontendInterface // installed extension rather than a new installation. virtual void OnExtensionInstalled(Extension* extension, bool is_update) = 0; + // Called when an existing extension is installed by the user. We may wish to + // notify the user about the prior existence of the extension, or take some + // action using the fact that the user chose to reinstall the extension as a + // signal (for example, setting the default theme to the extension). + virtual void OnExtensionVersionReinstalled(const std::string& id) = 0; + // Lookup an extension by |id|. virtual Extension* GetExtensionByID(std::string id) = 0; + }; @@ -77,6 +84,7 @@ class ExtensionsService : public ExtensionsServiceFrontendInterface { virtual void OnExtensionsLoaded(ExtensionList* extensions); virtual void OnExtensionInstalled(Extension* extension, bool is_update); virtual Extension* GetExtensionByID(std::string id); + virtual void OnExtensionVersionReinstalled(const std::string& id); // The name of the file that the current active version number is stored in. static const char* kCurrentVersionFileName; @@ -176,6 +184,9 @@ class ExtensionsServiceBackend void ReportExtensionInstallError(const FilePath& extension_path, const std::string& error); + // Notify the frontend that the extension had already been installed. + void ReportExtensionVersionReinstalled(const std::string& id); + // Notify the frontend that extensions were installed. // |is_update| is true if this was an update to an existing extension. void ReportExtensionInstalled(const FilePath& path, bool is_update); |