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 |