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

Unified Diff: content/public/browser/web_contents.h

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 5 years, 8 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/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 43804129322c4ed56ffc7b451c6ae1e5b84bfc2d..8ccd0b487d2a7ddb5b91582fff10daf5363c1ab2 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -220,6 +220,10 @@ class WebContents : public PageNavigator,
// time and can be nullptr (during setup and teardown).
virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0;
+ // Causes the current page to be closed, including running its onunload event
+ // handler. A ClosePage_ACK message is sent when it is finished.
Charlie Reis 2015/04/29 17:31:18 We probably don't need to mention the ACK here, si
nasko 2015/04/29 21:15:33 Done.
+ virtual void ClosePage() = 0;
+
// Returns the currently active fullscreen widget. If there is none, returns
// nullptr.
virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0;

Powered by Google App Engine
This is Rietveld 408576698