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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 8477005: Add policies to specify an enterprise web store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasse. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 19ddee2e700f7190b202ba1e108dd621b94e7a82..c072192603edd3021c299bc44da6e8e24c507fef 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -114,6 +114,14 @@ class ExtensionServiceInterface : public SyncableService {
// TODO(akalin): Remove this method (and others) once we refactor
// themes sync to not use it directly.
virtual void CheckForUpdatesSoon() = 0;
+
+ virtual void AddExtension(const Extension* extension) = 0;
+
+ virtual void UnloadExtension(
+ const std::string& extension_id,
+ extension_misc::UnloadedExtensionReason reason) = 0;
+
+ virtual bool is_ready() = 0;
};
// Manages installed and running Chromium extensions.
@@ -312,8 +320,9 @@ class ExtensionService
void CheckForExternalUpdates();
// Unload the specified extension.
- void UnloadExtension(const std::string& extension_id,
- extension_misc::UnloadedExtensionReason reason);
+ virtual void UnloadExtension(
+ const std::string& extension_id,
+ extension_misc::UnloadedExtensionReason reason);
// Unload all extensions. This is currently only called on shutdown, and
// does not send notifications.
@@ -360,7 +369,7 @@ class ExtensionService
// Adds |extension| to this ExtensionService and notifies observers than an
// extension has been loaded. Called by the backend after an extension has
// been loaded from a file and installed.
- void AddExtension(const Extension* extension);
+ virtual void AddExtension(const Extension* extension);
// Called by the backend when an extension has been installed.
void OnExtensionInstalled(
@@ -415,7 +424,7 @@ class ExtensionService
ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
// Whether the extension service is ready.
- bool is_ready() { return ready_; }
+ virtual bool is_ready() OVERRIDE;
extensions::ComponentLoader* component_loader() {
return component_loader_.get();

Powered by Google App Engine
This is Rietveld 408576698