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

Unified Diff: extensions/browser/extension_registry_observer.h

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TriggerOnUnloaded (runtime_data) Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_registry_observer.h
diff --git a/extensions/browser/extension_registry_observer.h b/extensions/browser/extension_registry_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d89388fa102cae7c638b08c4a31ab3033d6b1c50
--- /dev/null
+++ b/extensions/browser/extension_registry_observer.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
+#define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
+
+namespace extensions {
+
+class Extension;
+
+// Observer for ExtensionRegistry. Exists in a separate header file to reduce
+// the include file burden for typical clients of ExtensionRegistry.
+class ExtensionRegistryObserver {
+ public:
+ virtual ~ExtensionRegistryObserver() {}
+
+ // Called after an extension is unloaded. The extension no longer exists in
+ // any of the ExtensionRegistry sets (enabled, disabled, etc.).
+ virtual void OnExtensionUnloaded(const Extension* extension) = 0;
not at google - send to devlin 2014/01/22 16:17:43 I can imagine this interface getting a few times b
James Cook 2014/01/22 17:41:52 Sure, I'll do that. I've seen both patterns for i
+
+ // Called after an extension is disabled. The extension exists in the
+ // ExtensionRegistry disabled set when this function is called.
+ virtual void OnExtensionDisabled(const Extension* extension) = 0;
not at google - send to devlin 2014/01/22 16:17:43 see comment in ExtensionRegistry about a giant war
+};
+
+}
+
+#endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698