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

Unified Diff: content/test/test_render_frame_host.h

Issue 2783723002: Keep track in the browser of which frames have onunload and onbeforeunload handlers. (Closed)
Patch Set: fix content_browsertests with plznavigate and also remove now unnecessary unloadcontroller change Created 3 years, 9 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/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index 8ec230085e1cff67b56e6ef2fda25648c7c86359..8a35b0ee0fc67ededd3c2dfd6931aec1c49facc2 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -135,6 +135,10 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
void set_pending_commit(bool pending) { pending_commit_ = pending; }
bool pending_commit() const { return pending_commit_; }
+ // Simulates the renderer informing the browser that the frame has an
+ // onbeforeunload handler.
+ void set_has_beforeunload_handlers() { has_beforeunload_handlers_ = true; }
+
// Creates a WebBluetooth Service with a dummy InterfaceRequest.
WebBluetoothServiceImpl* CreateWebBluetoothServiceForTesting();

Powered by Google App Engine
This is Rietveld 408576698