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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2176 } | 2176 } |
2177 | 2177 |
2178 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 2178 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
2179 SiteInstance* source_site_instance) { | 2179 SiteInstance* source_site_instance) { |
2180 GURL validated_url(params.url); | 2180 GURL validated_url(params.url); |
2181 GetProcess()->FilterURL(false, &validated_url); | 2181 GetProcess()->FilterURL(false, &validated_url); |
2182 | 2182 |
2183 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", | 2183 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", |
2184 validated_url.possibly_invalid_spec()); | 2184 validated_url.possibly_invalid_spec()); |
2185 frame_tree_node_->navigator()->RequestOpenURL( | 2185 frame_tree_node_->navigator()->RequestOpenURL( |
2186 this, validated_url, source_site_instance, params.referrer, | 2186 this, validated_url, params.uses_post, params.resource_request_body, |
2187 params.disposition, params.should_replace_current_entry, | 2187 source_site_instance, params.referrer, params.disposition, |
2188 params.user_gesture); | 2188 params.should_replace_current_entry, params.user_gesture); |
2189 } | 2189 } |
2190 | 2190 |
2191 void RenderFrameHostImpl::Stop() { | 2191 void RenderFrameHostImpl::Stop() { |
2192 Send(new FrameMsg_Stop(routing_id_)); | 2192 Send(new FrameMsg_Stop(routing_id_)); |
2193 } | 2193 } |
2194 | 2194 |
2195 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, | 2195 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, |
2196 bool is_reload) { | 2196 bool is_reload) { |
2197 DCHECK(for_navigation || !is_reload); | 2197 DCHECK(for_navigation || !is_reload); |
2198 | 2198 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2906 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2907 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2907 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2908 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2908 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2909 } | 2909 } |
2910 | 2910 |
2911 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2911 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2912 web_bluetooth_service_.reset(); | 2912 web_bluetooth_service_.reset(); |
2913 } | 2913 } |
2914 | 2914 |
2915 } // namespace content | 2915 } // namespace content |
OLD | NEW |