OLD | NEW |
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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 // Increment the in-flight event count, to ensure that input events won't | 1110 // Increment the in-flight event count, to ensure that input events won't |
1111 // cancel the timeout timer. | 1111 // cancel the timeout timer. |
1112 render_view_host_->increment_in_flight_event_count(); | 1112 render_view_host_->increment_in_flight_event_count(); |
1113 render_view_host_->StartHangMonitorTimeout( | 1113 render_view_host_->StartHangMonitorTimeout( |
1114 TimeDelta::FromMilliseconds(RenderViewHostImpl::kUnloadTimeoutMS)); | 1114 TimeDelta::FromMilliseconds(RenderViewHostImpl::kUnloadTimeoutMS)); |
1115 send_before_unload_start_time_ = base::TimeTicks::Now(); | 1115 send_before_unload_start_time_ = base::TimeTicks::Now(); |
1116 Send(new FrameMsg_BeforeUnload(routing_id_)); | 1116 Send(new FrameMsg_BeforeUnload(routing_id_)); |
1117 } | 1117 } |
1118 } | 1118 } |
1119 | 1119 |
| 1120 void RenderFrameHostImpl::DisownOpener() { |
| 1121 Send(new FrameMsg_DisownOpener(GetRoutingID())); |
| 1122 } |
| 1123 |
1120 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, | 1124 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, |
1121 size_t after) { | 1125 size_t after) { |
1122 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); | 1126 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); |
1123 } | 1127 } |
1124 | 1128 |
1125 void RenderFrameHostImpl::JavaScriptDialogClosed( | 1129 void RenderFrameHostImpl::JavaScriptDialogClosed( |
1126 IPC::Message* reply_msg, | 1130 IPC::Message* reply_msg, |
1127 bool success, | 1131 bool success, |
1128 const base::string16& user_input, | 1132 const base::string16& user_input, |
1129 bool dialog_was_suppressed) { | 1133 bool dialog_was_suppressed) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 } | 1244 } |
1241 | 1245 |
1242 void RenderFrameHostImpl::CancelSuspendedNavigations() { | 1246 void RenderFrameHostImpl::CancelSuspendedNavigations() { |
1243 // Clear any state if a pending navigation is canceled or preempted. | 1247 // Clear any state if a pending navigation is canceled or preempted. |
1244 if (suspended_nav_params_) | 1248 if (suspended_nav_params_) |
1245 suspended_nav_params_.reset(); | 1249 suspended_nav_params_.reset(); |
1246 navigations_suspended_ = false; | 1250 navigations_suspended_ = false; |
1247 } | 1251 } |
1248 | 1252 |
1249 } // namespace content | 1253 } // namespace content |
OLD | NEW |