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

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

Issue 10641017: make "reload" on chrome://extensions automatically relaunch running apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review improvements Created 8 years, 6 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 9561c4b2a7afb67afc907bdc5821912530844191..d7102fe7c31d7067e611043d9c9beb6c84c4cc7e 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -101,6 +101,11 @@ class ExtensionProcessManager : public content::NotificationObserver {
std::set<content::RenderViewHost*> GetRenderViewHostsForExtension(
const std::string& extension_id);
+ // Returns all RenderViewHosts that are registered for the specified
+ // extension and have the given view type.
+ std::set<content::RenderViewHost*> GetRenderViewHostsWithTypeForExtension(
+ const std::string& extension_id, chrome::ViewType view_type);
+
// Returns the extension associated with the specified RenderViewHost, or
// NULL.
const extensions::Extension* GetExtensionForRenderViewHost(
@@ -196,6 +201,13 @@ class ExtensionProcessManager : public content::NotificationObserver {
// Clears background page data for this extension.
void ClearBackgroundPageData(const std::string& extension_id);
+ // Gets the RVHs for the given extension. If |restrict_to_type| is true, only
+ // views of |view_type| are returned.
+ std::set<content::RenderViewHost*> DoGetRenderViewHostsForExtension(
+ const std::string& extension_id,
+ bool restrict_to_type,
+ chrome::ViewType view_type);
+
BackgroundPageDataMap background_page_data_;
// The time to delay between an extension becoming idle and

Powered by Google App Engine
This is Rietveld 408576698