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

Unified Diff: extensions/renderer/extensions_renderer_client.h

Issue 2958343002: [Extensions] Change renderer-side web accessible resource determination (Closed)
Patch Set: s/web_accessible_ids/web_accessible_ids_ Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/extensions_renderer_client.h
diff --git a/extensions/renderer/extensions_renderer_client.h b/extensions/renderer/extensions_renderer_client.h
index 8ead04cf2016c92c9a1855983698f1c084d77836..2ef7246658ef5c816e3d7e00e1c29bd3022aa954 100644
--- a/extensions/renderer/extensions_renderer_client.h
+++ b/extensions/renderer/extensions_renderer_client.h
@@ -5,7 +5,10 @@
#ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
#define EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
+#include "extensions/common/extension_id.h"
+
namespace extensions {
+class Extension;
class Dispatcher;
// Interface to allow the extensions module to make render-process-specific
@@ -29,6 +32,11 @@ class ExtensionsRendererClient {
// Returns the associated Dispatcher.
virtual Dispatcher* GetDispatcher() = 0;
+ // Notifies the client when an extension is added or removed.
+ // TODO(devlin): Make a RendererExtensionRegistryObserver?
+ virtual void OnExtensionLoaded(const Extension& extension) {}
+ virtual void OnExtensionUnloaded(const ExtensionId& extension) {}
+
// Returns the single instance of |this|.
static ExtensionsRendererClient* Get();
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698