summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_web_contents_observer.h
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-04-03 13:19:40 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-03 20:20:20 +0000
commit6ae04a013f6040f5d38e6cf04f6da224f21b77f9 (patch)
tree427696998b1fd65a9549ab695f30e58f9365c960 /extensions/browser/extension_web_contents_observer.h
parent11d52caf494dea19e0feb6184858b9ec24bdb46c (diff)
downloadchromium_src-6ae04a013f6040f5d38e6cf04f6da224f21b77f9.zip
chromium_src-6ae04a013f6040f5d38e6cf04f6da224f21b77f9.tar.gz
chromium_src-6ae04a013f6040f5d38e6cf04f6da224f21b77f9.tar.bz2
Reland: [Extensions] Change ProcessManager to use RenderFrameHosts
(Reland of https://codereview.chromium.org/1037263004) RenderViewHosts are going to go away, and things using them are blocking OOPIs. Make ProcessManager use RenderFrameHosts. Additionally, this takes out ~130 lines of code. BUG=466373 (TBRing other reviewers from original patch, since no code there changed) TBR=avi@chromium.org TBR=asargent@chromium.org TBR=atwilson@chromium.org TBR=jamescook@chromium.org TBR=dgozman@chromium.org TBR=nick@chromium.org Review URL: https://codereview.chromium.org/1056463005 Cr-Commit-Position: refs/heads/master@{#323803}
Diffstat (limited to 'extensions/browser/extension_web_contents_observer.h')
-rw-r--r--extensions/browser/extension_web_contents_observer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/browser/extension_web_contents_observer.h b/extensions/browser/extension_web_contents_observer.h
index cd48560..993a8fe 100644
--- a/extensions/browser/extension_web_contents_observer.h
+++ b/extensions/browser/extension_web_contents_observer.h
@@ -42,6 +42,13 @@ class ExtensionWebContentsObserver : public content::WebContentsObserver {
void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
+ // Per the documentation in WebContentsObserver, these two methods are
+ // appropriate to track the set of current RenderFrameHosts.
+ // NOTE: FrameDeleted() != RenderFrameDeleted().
+ void FrameDeleted(content::RenderFrameHost* render_frame_host) override;
+ void RenderFrameHostChanged(content::RenderFrameHost* old_host,
+ content::RenderFrameHost* new_host) override;
+
// Returns the extension or app associated with a render view host. Returns
// NULL if the render view host is not for a valid extension.
const Extension* GetExtension(content::RenderViewHost* render_view_host);