Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Reordered fields of FrameHostMsg_OpenURL_Params to match order in content::OpenURLParams. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 2315
2316 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, 2316 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params,
2317 SiteInstance* source_site_instance) { 2317 SiteInstance* source_site_instance) {
2318 GURL validated_url(params.url); 2318 GURL validated_url(params.url);
2319 GetProcess()->FilterURL(false, &validated_url); 2319 GetProcess()->FilterURL(false, &validated_url);
2320 2320
2321 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url", 2321 TRACE_EVENT1("navigation", "RenderFrameHostImpl::OpenURL", "url",
2322 validated_url.possibly_invalid_spec()); 2322 validated_url.possibly_invalid_spec());
2323 frame_tree_node_->navigator()->RequestOpenURL( 2323 frame_tree_node_->navigator()->RequestOpenURL(
2324 this, validated_url, params.uses_post, params.resource_request_body, 2324 this, validated_url, params.uses_post, params.resource_request_body,
2325 source_site_instance, params.referrer, params.disposition, 2325 params.extra_headers, source_site_instance, params.referrer,
2326 params.should_replace_current_entry, params.user_gesture); 2326 params.disposition, params.should_replace_current_entry,
2327 params.user_gesture);
2327 } 2328 }
2328 2329
2329 void RenderFrameHostImpl::Stop() { 2330 void RenderFrameHostImpl::Stop() {
2330 Send(new FrameMsg_Stop(routing_id_)); 2331 Send(new FrameMsg_Stop(routing_id_));
2331 } 2332 }
2332 2333
2333 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation, 2334 void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation,
2334 bool is_reload) { 2335 bool is_reload) {
2335 DCHECK(for_navigation || !is_reload); 2336 DCHECK(for_navigation || !is_reload);
2336 2337
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
3088 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3089 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3089 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3090 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3090 return web_bluetooth_service_.get(); 3091 return web_bluetooth_service_.get();
3091 } 3092 }
3092 3093
3093 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3094 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3094 web_bluetooth_service_.reset(); 3095 web_bluetooth_service_.reset();
3095 } 3096 }
3096 3097
3097 } // namespace content 3098 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698