| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2311 | 2311 |
| 2312 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 2312 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 2313 SiteInstance* source_site_instance) { | 2313 SiteInstance* source_site_instance) { |
| 2314 GURL validated_url(params.url); | 2314 GURL validated_url(params.url); |
| 2315 GetProcess()->FilterURL(false, &validated_url); | 2315 GetProcess()->FilterURL(false, &validated_url); |
| 2316 | 2316 |
| 2317 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", | 2317 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", |
| 2318 validated_url.possibly_invalid_spec()); | 2318 validated_url.possibly_invalid_spec()); |
| 2319 frame_tree_node_->navigator()->RequestOpenURL( | 2319 frame_tree_node_->navigator()->RequestOpenURL( |
| 2320 this, validated_url, params.uses_post, params.resource_request_body, | 2320 this, validated_url, params.uses_post, params.resource_request_body, |
| 2321 source_site_instance, params.referrer, params.disposition, | 2321 params.extra_headers, source_site_instance, params.referrer, |
| 2322 params.should_replace_current_entry, params.user_gesture); | 2322 params.disposition, params.should_replace_current_entry, |
| 2323 params.user_gesture); |
| 2323 } | 2324 } |
| 2324 | 2325 |
| 2325 void RenderFrameHostImpl::Stop() { | 2326 void RenderFrameHostImpl::Stop() { |
| 2326 Send(new FrameMsg_Stop(routing_id_)); | 2327 Send(new FrameMsg_Stop(routing_id_)); |
| 2327 } | 2328 } |
| 2328 | 2329 |
| 2329 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, | 2330 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, |
| 2330 bool is_reload) { | 2331 bool is_reload) { |
| 2331 DCHECK(for_navigation || !is_reload); | 2332 DCHECK(for_navigation || !is_reload); |
| 2332 | 2333 |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3096 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3097 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
| 3097 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3098 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
| 3098 return web_bluetooth_service_.get(); | 3099 return web_bluetooth_service_.get(); |
| 3099 } | 3100 } |
| 3100 | 3101 |
| 3101 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3102 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
| 3102 web_bluetooth_service_.reset(); | 3103 web_bluetooth_service_.reset(); |
| 3103 } | 3104 } |
| 3104 | 3105 |
| 3105 } // namespace content | 3106 } // namespace content |
| OLD | NEW |