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

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 2004653002: OpenURL post data handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
Patch Set: Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/render_frame_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "content/child/web_url_request_util.h"
13 #include "content/child/webmessageportchannel_impl.h" 14 #include "content/child/webmessageportchannel_impl.h"
14 #include "content/common/content_security_policy_header.h" 15 #include "content/common/content_security_policy_header.h"
15 #include "content/common/frame_messages.h" 16 #include "content/common/frame_messages.h"
16 #include "content/common/frame_replication_state.h" 17 #include "content/common/frame_replication_state.h"
17 #include "content/common/input_messages.h" 18 #include "content/common/input_messages.h"
18 #include "content/common/page_messages.h" 19 #include "content/common/page_messages.h"
19 #include "content/common/site_isolation_policy.h" 20 #include "content/common/site_isolation_policy.h"
20 #include "content/common/swapped_out_messages.h" 21 #include "content/common/swapped_out_messages.h"
21 #include "content/common/view_messages.h" 22 #include "content/common/view_messages.h"
22 #include "content/renderer/child_frame_compositing_helper.h" 23 #include "content/renderer/child_frame_compositing_helper.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 void RenderFrameProxy::initializeChildFrame( 430 void RenderFrameProxy::initializeChildFrame(
430 float scale_factor) { 431 float scale_factor) {
431 Send(new FrameHostMsg_InitializeChildFrame( 432 Send(new FrameHostMsg_InitializeChildFrame(
432 routing_id_, scale_factor)); 433 routing_id_, scale_factor));
433 } 434 }
434 435
435 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, 436 void RenderFrameProxy::navigate(const blink::WebURLRequest& request,
436 bool should_replace_current_entry) { 437 bool should_replace_current_entry) {
437 FrameHostMsg_OpenURL_Params params; 438 FrameHostMsg_OpenURL_Params params;
438 params.url = request.url(); 439 params.url = request.url();
440 params.method = request.httpMethod().utf8();
441 params.resource_request_body = GetRequestBodyForWebURLRequest(request);
439 params.referrer = Referrer( 442 params.referrer = Referrer(
440 blink::WebStringToGURL( 443 blink::WebStringToGURL(
441 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), 444 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))),
442 request.referrerPolicy()); 445 request.referrerPolicy());
443 params.disposition = CURRENT_TAB; 446 params.disposition = CURRENT_TAB;
444 params.should_replace_current_entry = should_replace_current_entry; 447 params.should_replace_current_entry = should_replace_current_entry;
445 params.user_gesture = 448 params.user_gesture =
446 blink::WebUserGestureIndicator::isProcessingUserGesture(); 449 blink::WebUserGestureIndicator::isProcessingUserGesture();
447 blink::WebUserGestureIndicator::consumeUserGesture(); 450 blink::WebUserGestureIndicator::consumeUserGesture();
448 Send(new FrameHostMsg_OpenURL(routing_id_, params)); 451 Send(new FrameHostMsg_OpenURL(routing_id_, params));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 blink::WebLocalFrame* source) { 483 blink::WebLocalFrame* source) {
481 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 484 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
482 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 485 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
483 } 486 }
484 487
485 void RenderFrameProxy::frameFocused() { 488 void RenderFrameProxy::frameFocused() {
486 Send(new FrameHostMsg_FrameFocused(routing_id_)); 489 Send(new FrameHostMsg_FrameFocused(routing_id_));
487 } 490 }
488 491
489 } // namespace 492 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698