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

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

Issue 2088793002: Revert of OpenURL post data handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
Patch Set: Created 4 years, 6 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"
14 #include "content/child/webmessageportchannel_impl.h" 13 #include "content/child/webmessageportchannel_impl.h"
15 #include "content/common/content_security_policy_header.h" 14 #include "content/common/content_security_policy_header.h"
16 #include "content/common/frame_messages.h" 15 #include "content/common/frame_messages.h"
17 #include "content/common/frame_replication_state.h" 16 #include "content/common/frame_replication_state.h"
18 #include "content/common/input_messages.h" 17 #include "content/common/input_messages.h"
19 #include "content/common/page_messages.h" 18 #include "content/common/page_messages.h"
20 #include "content/common/site_isolation_policy.h" 19 #include "content/common/site_isolation_policy.h"
21 #include "content/common/swapped_out_messages.h" 20 #include "content/common/swapped_out_messages.h"
22 #include "content/common/view_messages.h" 21 #include "content/common/view_messages.h"
23 #include "content/renderer/child_frame_compositing_helper.h" 22 #include "content/renderer/child_frame_compositing_helper.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void RenderFrameProxy::initializeChildFrame( 439 void RenderFrameProxy::initializeChildFrame(
441 float scale_factor) { 440 float scale_factor) {
442 Send(new FrameHostMsg_InitializeChildFrame( 441 Send(new FrameHostMsg_InitializeChildFrame(
443 routing_id_, scale_factor)); 442 routing_id_, scale_factor));
444 } 443 }
445 444
446 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, 445 void RenderFrameProxy::navigate(const blink::WebURLRequest& request,
447 bool should_replace_current_entry) { 446 bool should_replace_current_entry) {
448 FrameHostMsg_OpenURL_Params params; 447 FrameHostMsg_OpenURL_Params params;
449 params.url = request.url(); 448 params.url = request.url();
450 params.uses_post = request.httpMethod().utf8() == "POST";
451 params.resource_request_body = GetRequestBodyForWebURLRequest(request);
452 params.referrer = Referrer( 449 params.referrer = Referrer(
453 blink::WebStringToGURL( 450 blink::WebStringToGURL(
454 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), 451 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))),
455 request.referrerPolicy()); 452 request.referrerPolicy());
456 params.disposition = CURRENT_TAB; 453 params.disposition = CURRENT_TAB;
457 params.should_replace_current_entry = should_replace_current_entry; 454 params.should_replace_current_entry = should_replace_current_entry;
458 params.user_gesture = 455 params.user_gesture =
459 blink::WebUserGestureIndicator::isProcessingUserGesture(); 456 blink::WebUserGestureIndicator::isProcessingUserGesture();
460 blink::WebUserGestureIndicator::consumeUserGesture(); 457 blink::WebUserGestureIndicator::consumeUserGesture();
461 Send(new FrameHostMsg_OpenURL(routing_id_, params)); 458 Send(new FrameHostMsg_OpenURL(routing_id_, params));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 blink::WebLocalFrame* source) { 490 blink::WebLocalFrame* source) {
494 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 491 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
495 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 492 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
496 } 493 }
497 494
498 void RenderFrameProxy::frameFocused() { 495 void RenderFrameProxy::frameFocused() {
499 Send(new FrameHostMsg_FrameFocused(routing_id_)); 496 Send(new FrameHostMsg_FrameFocused(routing_id_));
500 } 497 }
501 498
502 } // namespace 499 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/data/form_that_posts_to_echoall.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698