diff options
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_; |