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

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromecast android compile failure. 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/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index 2b031ff77c3a8f64bd8a3b2a47118199164792ac..f5f3dec861ff47cbce07a926e1ceef524ef31384 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -123,7 +123,6 @@ class CONTENT_EXPORT RenderViewHostImpl
void AllowBindings(int binding_flags) override;
void ClearFocusedElement() override;
bool IsFocusedElementEditable() override;
- void ClosePage() override;
void CopyImageAt(int x, int y) override;
void SaveImageAt(int x, int y) override;
void DirectoryEnumerationFinished(
@@ -227,6 +226,10 @@ class CONTENT_EXPORT RenderViewHostImpl
// longer on the stack when we attempt to swap it out.
void SuppressDialogsUntilSwapOut();
+ // Tells the renderer process to run the page's unload handler.
+ // A ClosePage_ACK ack is sent back when the handler execution completes.
+ void ClosePage();
+
// Close the page ignoring whether it has unload events registers.
// This is called after the beforeunload and unload events have fired
// and the user has agreed to continue with closing the page.

Powered by Google App Engine
This is Rietveld 408576698