| 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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 | 2393 |
| 2394 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 2394 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 2395 SiteInstance* source_site_instance) { | 2395 SiteInstance* source_site_instance) { |
| 2396 GURL validated_url(params.url); | 2396 GURL validated_url(params.url); |
| 2397 GetProcess()->FilterURL(false, &validated_url); | 2397 GetProcess()->FilterURL(false, &validated_url); |
| 2398 | 2398 |
| 2399 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", | 2399 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", |
| 2400 validated_url.possibly_invalid_spec()); | 2400 validated_url.possibly_invalid_spec()); |
| 2401 frame_tree_node_->navigator()->RequestOpenURL( | 2401 frame_tree_node_->navigator()->RequestOpenURL( |
| 2402 this, validated_url, params.uses_post, params.resource_request_body, | 2402 this, validated_url, params.uses_post, params.resource_request_body, |
| 2403 source_site_instance, params.referrer, params.disposition, | 2403 params.extra_headers, source_site_instance, params.referrer, |
| 2404 params.should_replace_current_entry, params.user_gesture); | 2404 params.disposition, params.should_replace_current_entry, |
| 2405 params.user_gesture); |
| 2405 } | 2406 } |
| 2406 | 2407 |
| 2407 void RenderFrameHostImpl::Stop() { | 2408 void RenderFrameHostImpl::Stop() { |
| 2408 Send(new FrameMsg_Stop(routing_id_)); | 2409 Send(new FrameMsg_Stop(routing_id_)); |
| 2409 } | 2410 } |
| 2410 | 2411 |
| 2411 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, | 2412 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, |
| 2412 bool is_reload) { | 2413 bool is_reload) { |
| 2413 DCHECK(for_navigation || !is_reload); | 2414 DCHECK(for_navigation || !is_reload); |
| 2414 | 2415 |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3182 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3183 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
| 3183 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3184 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
| 3184 return web_bluetooth_service_.get(); | 3185 return web_bluetooth_service_.get(); |
| 3185 } | 3186 } |
| 3186 | 3187 |
| 3187 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3188 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
| 3188 web_bluetooth_service_.reset(); | 3189 web_bluetooth_service_.reset(); |
| 3189 } | 3190 } |
| 3190 | 3191 |
| 3191 } // namespace content | 3192 } // namespace content |
| OLD | NEW |