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

Unified Diff: chrome/browser/extensions/extension_process_manager.h

Issue 8361021: Track all extension processes in ExtensionInfoMap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: argh Created 9 years, 2 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: chrome/browser/extensions/extension_process_manager.h
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h
index 41d0bbb0987223a13c598fcfa2e1bd2b60b11f4f..d99ee09d3f4a86ef40e7538395f5bfcd53c6a19d 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -147,7 +147,8 @@ class ExtensionProcessManager : public content::NotificationObserver {
SiteInstanceIDMap extension_ids_;
// A map of process ID to site instance ID of the site instances it hosts.
- typedef std::map<int, std::set<int> > ProcessIDMap;
+ typedef std::set<int> SiteInstanceIDSet;
+ typedef std::map<int, SiteInstanceIDSet> ProcessIDMap;
ProcessIDMap process_ids_;
private:
@@ -169,6 +170,10 @@ class ExtensionProcessManager : public content::NotificationObserver {
// Excludes background page.
bool HasVisibleViews(const std::string& extension_id);
+ // Clears the mapping for the specified site instance. Returns the process the
+ // site was mapped to, or -1 if it wasn't found.
+ int ClearSiteInstanceID(int site_instance_id);
+
DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager);
};
« no previous file with comments | « chrome/browser/extensions/extension_info_map.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698