diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-23 17:12:21 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-23 17:12:21 +0000 |
commit | da5683db1bbf401694c72f7d4216f38249ac2c13 (patch) | |
tree | 458e91e25e3c033bf1296de4b58e24cb1b7022d9 /chrome/browser/extensions/extension_service.h | |
parent | 77a6970c962882244b57219681acd109acd9f3fc (diff) | |
download | chromium_src-da5683db1bbf401694c72f7d4216f38249ac2c13.zip chromium_src-da5683db1bbf401694c72f7d4216f38249ac2c13.tar.gz chromium_src-da5683db1bbf401694c72f7d4216f38249ac2c13.tar.bz2 |
Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. ExtensionService keeps a map from renderer child ids to installed extensions instead.
Review URL: http://codereview.chromium.org/6880089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_service.h')
-rw-r--r-- | chrome/browser/extensions/extension_service.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h index eb87da9..5898605 100644 --- a/chrome/browser/extensions/extension_service.h +++ b/chrome/browser/extensions/extension_service.h @@ -156,6 +156,13 @@ class ExtensionService // Returns whether the URL is from either a hosted or packaged app. bool IsInstalledApp(const GURL& url); + // Associates a renderer process with the given installed app. + void SetInstalledAppForRenderer(int renderer_child_id, const Extension* app); + + // If the renderer is hosting an installed app, returns it, otherwise returns + // NULL. + const Extension* GetInstalledAppForRenderer(int renderer_child_id); + // Attempts to uninstall an extension from a given ExtensionService. Returns // true iff the target extension exists. static bool UninstallExtensionHelper(ExtensionService* extensions_service, @@ -578,6 +585,11 @@ class ExtensionService // The map of extension IDs to their runtime data. ExtensionRuntimeDataMap extension_runtime_data_; + // Holds a map between renderer process IDs that are associated with an + // installed app and their app. + typedef std::map<int, scoped_refptr<const Extension> > InstalledAppMap; + InstalledAppMap installed_app_hosts_; + // The full path to the directory where extensions are installed. FilePath install_directory_; |