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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 23514016: <webview>: Cleanup WebRequest event listeners when embedder destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed WebRequest unit test Created 7 years, 3 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: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index cd40fea4f0557537370c396bf3c320cf62140ccc..f3d31d2d2ca9e7135c452a3d95aca33b13e9f8b6 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -104,6 +104,10 @@ class CONTENT_EXPORT BrowserPluginGuest
BrowserPluginGuest* opener,
bool has_render_view);
+ // Called when the embedder RenderViewHost is destroyed to give the
+ // BrowserPluginGuest an opportunity to clean up after itself.
+ void EmbedderDestroyed();
+
// Destroys the guest WebContents and all its associated state, including
// this BrowserPluginGuest, and its new unattached windows.
void Destroy();

Powered by Google App Engine
This is Rietveld 408576698