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

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: Add tests for ComponentLoader. 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 47cc52dfea9ed30589e1ffbb6c3112d5b0a9cf78..ed3b6d482b3f0d4c663a634dadf309f98e445ec8 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -113,6 +113,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.
@@ -309,8 +317,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.
@@ -357,7 +366,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(
@@ -412,7 +421,7 @@ class ExtensionService
ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
// Whether the extension service is ready.
- bool is_ready() { return ready_; }
+ virtual bool is_ready() { return ready_; }
extensions::ComponentLoader* component_loader() {
return component_loader_.get();

Powered by Google App Engine
This is Rietveld 408576698