summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_web_contents_observer.h
diff options
context:
space:
mode:
authoremaxx <emaxx@chromium.org>2015-05-29 04:26:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-29 11:26:31 +0000
commite70f5e1d286a200d420a996fcc2ff7fa7a2780a2 (patch)
treea4d700fca0037a858e5def87fb621d8924903746 /extensions/browser/extension_web_contents_observer.h
parent7a9e97c09150725748953ca9e1cf118d56d35f55 (diff)
downloadchromium_src-e70f5e1d286a200d420a996fcc2ff7fa7a2780a2.zip
chromium_src-e70f5e1d286a200d420a996fcc2ff7fa7a2780a2.tar.gz
chromium_src-e70f5e1d286a200d420a996fcc2ff7fa7a2780a2.tar.bz2
Keep event page alive when there's some Pepper plugin on it.
BUG=472532 Review URL: https://codereview.chromium.org/1117023002 Cr-Commit-Position: refs/heads/master@{#331945}
Diffstat (limited to 'extensions/browser/extension_web_contents_observer.h')
-rw-r--r--extensions/browser/extension_web_contents_observer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/browser/extension_web_contents_observer.h b/extensions/browser/extension_web_contents_observer.h
index 993a8fe..d36d782 100644
--- a/extensions/browser/extension_web_contents_observer.h
+++ b/extensions/browser/extension_web_contents_observer.h
@@ -49,6 +49,11 @@ class ExtensionWebContentsObserver : public content::WebContentsObserver {
void RenderFrameHostChanged(content::RenderFrameHost* old_host,
content::RenderFrameHost* new_host) override;
+ // Per the documentation in WebContentsObserver, these two methods are invoked
+ // when a Pepper plugin instance is attached/detached in the page DOM.
+ void PepperInstanceCreated() override;
+ void PepperInstanceDeleted() 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);