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

Unified Diff: content/public/renderer/render_frame_observer.h

Issue 364123002: [Cross-Site Isolation] Migrate entire MediaStream verticals to be per-RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment and style fix, per yzshen. Also, REBASE. Created 6 years, 5 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/public/renderer/render_frame_observer.h
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
index ac836bb809b3dd0f8d2eee93c487bea0b3e59681..d298065e40bb5fe65e9fbde68a40f5f863c2dbcf 100644
--- a/content/public/renderer/render_frame_observer.h
+++ b/content/public/renderer/render_frame_observer.h
@@ -54,6 +54,10 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
virtual void DidClearWindowObject() {}
virtual void DidChangeName(const base::string16& name) {}
+ // Called when the frame will soon be closed. This is the last opportunity to
+ // send messages to the host (e.g., for clean-up, shutdown, etc.).
+ virtual void FrameWillClose() {}
+
// Called when we receive a console message from Blink for which we requested
// extra details (like the stack trace). |message| is the error message,
// |source| is the Blink-reported source of the error (either external or

Powered by Google App Engine
This is Rietveld 408576698