summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 02:32:32 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 02:32:32 +0000
commita36b5560fd3741640aabaec203272a5bc1a35dd8 (patch)
tree7e944cbd052089fac88fefbb2fc0d48c11fcaeab /extensions
parent53a37e161a23f447126d4e58d932d7c98fe6eff7 (diff)
downloadchromium_src-a36b5560fd3741640aabaec203272a5bc1a35dd8.zip
chromium_src-a36b5560fd3741640aabaec203272a5bc1a35dd8.tar.gz
chromium_src-a36b5560fd3741640aabaec203272a5bc1a35dd8.tar.bz2
Break ExtensionHost dependency on ExtensionService.
Add an OnRenderViewCreatedForBackgroundPage() method to the ExtensionsBrowserClient interface so that ExtensionHost doesn't need to know anything about ExtensionService. BUG=332982 Review URL: https://codereview.chromium.org/136553011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r--extensions/browser/extensions_browser_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index a132678..722bdde 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -25,6 +25,7 @@ namespace extensions {
class ApiActivityMonitor;
class AppSorting;
class Extension;
+class ExtensionHost;
class ExtensionSystem;
// Interface to allow the extensions module to make browser-process-specific
@@ -94,6 +95,9 @@ class ExtensionsBrowserClient {
// implementation may wish to add preference observers to |web_contents|.
virtual void OnExtensionHostCreated(content::WebContents* web_contents) = 0;
+ // Called after |host| creates a RenderView for an extension.
+ virtual void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) = 0;
+
// Returns true if the client version has updated since the last run. Called
// once each time the extensions system is loaded per browser_context. The
// implementation may wish to use the BrowserContext to record the current