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

Side by Side Diff: content/renderer/render_frame_impl.cc

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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4727 matching lines...) Expand 10 before | Expand all | Expand 10 after
4738 } 4738 }
4739 4739
4740 void RenderFrameImpl::EnterFullscreen() { 4740 void RenderFrameImpl::EnterFullscreen() {
4741 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); 4741 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true));
4742 } 4742 }
4743 4743
4744 void RenderFrameImpl::ExitFullscreen() { 4744 void RenderFrameImpl::ExitFullscreen() {
4745 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); 4745 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false));
4746 } 4746 }
4747 4747
4748 void RenderFrameImpl::SuddenTerminationDisablerChanged(
4749 bool present,
4750 blink::WebFrameClient::SuddenTerminationDisablerType type) {
4751 switch (type) {
4752 case blink::WebFrameClient::kBeforeUnloadHandler:
4753 Send(new FrameHostMsg_BeforeUnloadHandlersPresent(routing_id_, present));
4754 break;
4755 case blink::WebFrameClient::kUnloadHandler:
4756 Send(new FrameHostMsg_UnloadHandlersPresent(routing_id_, present));
4757 break;
4758 default:
4759 NOTREACHED();
4760 }
4761 }
4762
4763 void RenderFrameImpl::RegisterProtocolHandler(const WebString& scheme, 4748 void RenderFrameImpl::RegisterProtocolHandler(const WebString& scheme,
4764 const WebURL& url, 4749 const WebURL& url,
4765 const WebString& title) { 4750 const WebString& title) {
4766 bool user_gesture = WebUserGestureIndicator::IsProcessingUserGesture(); 4751 bool user_gesture = WebUserGestureIndicator::IsProcessingUserGesture();
4767 Send(new FrameHostMsg_RegisterProtocolHandler(routing_id_, scheme.Utf8(), url, 4752 Send(new FrameHostMsg_RegisterProtocolHandler(routing_id_, scheme.Utf8(), url,
4768 title.Utf16(), user_gesture)); 4753 title.Utf16(), user_gesture));
4769 } 4754 }
4770 4755
4771 void RenderFrameImpl::UnregisterProtocolHandler(const WebString& scheme, 4756 void RenderFrameImpl::UnregisterProtocolHandler(const WebString& scheme,
4772 const WebURL& url) { 4757 const WebURL& url) {
(...skipping 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after
6977 policy(info.default_policy), 6962 policy(info.default_policy),
6978 replaces_current_history_item(info.replaces_current_history_item), 6963 replaces_current_history_item(info.replaces_current_history_item),
6979 history_navigation_in_new_child_frame( 6964 history_navigation_in_new_child_frame(
6980 info.is_history_navigation_in_new_child_frame), 6965 info.is_history_navigation_in_new_child_frame),
6981 client_redirect(info.is_client_redirect), 6966 client_redirect(info.is_client_redirect),
6982 cache_disabled(info.is_cache_disabled), 6967 cache_disabled(info.is_cache_disabled),
6983 form(info.form), 6968 form(info.form),
6984 source_location(info.source_location) {} 6969 source_location(info.source_location) {}
6985 6970
6986 } // namespace content 6971 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698