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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2812743002: Revert of Keep track in the browser of which frames have onunload and onbeforeunload handlers. (Closed)
Patch Set: manual merge Created 3 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/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index c4e60a1ad6ddd551d0d457902c3df48dff217b6c..6f30641bb118e88eda51f59aaee07d33b53aa9cc 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -432,10 +432,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
// frame is the main frame.
bool ShouldDispatchBeforeUnload();
- // Returns true if the frame or any of its descendents have an onunload
- // handler.
- bool ShouldDispatchUnload();
-
// Update the frame's opener in the renderer process in response to the
// opener being modified (e.g., with window.open or being set to null) in
// another renderer process.
@@ -765,8 +761,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
base::string16 text,
base::string16 html);
void OnToggleFullscreen(bool enter_fullscreen);
- void OnBeforeUnloadHandlersPresent(bool present);
- void OnUnloadHandlersPresent(bool present);
void OnDidStartLoading(bool to_different_document);
void OnDidStopLoading();
void OnDidChangeLoadProgress(double load_progress);
@@ -1000,10 +994,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
// When the last BeforeUnload message was sent.
base::TimeTicks send_before_unload_start_time_;
- // Used to track whether the frame has onbeforeunload and onunload handlers
- bool has_beforeunload_handlers_;
- bool has_unload_handlers_;
-
// Set to true when there is a pending FrameMsg_BeforeUnload message. This
// ensures we don't spam the renderer with multiple beforeunload requests.
// When either this value or IsWaitingForUnloadACK is true, the value of
« no previous file with comments | « content/browser/frame_host/navigator_impl_unittest.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698