| 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 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 2157 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 2158 SiteInstance* source_site_instance) { | 2158 SiteInstance* source_site_instance) { |
| 2159 GURL validated_url(params.url); | 2159 GURL validated_url(params.url); |
| 2160 GetProcess()->FilterURL(false, &validated_url); | 2160 GetProcess()->FilterURL(false, &validated_url); |
| 2161 | 2161 |
| 2162 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", | 2162 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", |
| 2163 validated_url.possibly_invalid_spec()); | 2163 validated_url.possibly_invalid_spec()); |
| 2164 frame_tree_node_->navigator()->RequestOpenURL( | 2164 frame_tree_node_->navigator()->RequestOpenURL( |
| 2165 this, validated_url, source_site_instance, params.referrer, | 2165 this, validated_url, params.uses_post, params.resource_request_body, |
| 2166 params.disposition, params.should_replace_current_entry, | 2166 source_site_instance, params.referrer, params.disposition, |
| 2167 params.user_gesture); | 2167 params.should_replace_current_entry, params.user_gesture); |
| 2168 } | 2168 } |
| 2169 | 2169 |
| 2170 void RenderFrameHostImpl::Stop() { | 2170 void RenderFrameHostImpl::Stop() { |
| 2171 Send(new FrameMsg_Stop(routing_id_)); | 2171 Send(new FrameMsg_Stop(routing_id_)); |
| 2172 } | 2172 } |
| 2173 | 2173 |
| 2174 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, | 2174 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, |
| 2175 bool is_reload) { | 2175 bool is_reload) { |
| 2176 DCHECK(for_navigation || !is_reload); | 2176 DCHECK(for_navigation || !is_reload); |
| 2177 | 2177 |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2858 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2858 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
| 2859 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2859 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
| 2860 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2860 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
| 2861 } | 2861 } |
| 2862 | 2862 |
| 2863 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2863 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
| 2864 web_bluetooth_service_.reset(); | 2864 web_bluetooth_service_.reset(); |
| 2865 } | 2865 } |
| 2866 | 2866 |
| 2867 } // namespace content | 2867 } // namespace content |
| OLD | NEW |