| OLD | NEW |
| 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 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); | 439 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); |
| 440 } | 440 } |
| 441 | 441 |
| 442 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, | 442 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, |
| 443 bool should_replace_current_entry) { | 443 bool should_replace_current_entry) { |
| 444 FrameHostMsg_OpenURL_Params params; | 444 FrameHostMsg_OpenURL_Params params; |
| 445 params.url = request.url(); | 445 params.url = request.url(); |
| 446 params.uses_post = request.httpMethod().utf8() == "POST"; | 446 params.uses_post = request.httpMethod().utf8() == "POST"; |
| 447 params.resource_request_body = GetRequestBodyForWebURLRequest(request); | 447 params.resource_request_body = GetRequestBodyForWebURLRequest(request); |
| 448 params.extra_headers = GetWebURLRequestHeaders(request); |
| 448 params.referrer = Referrer( | 449 params.referrer = Referrer( |
| 449 blink::WebStringToGURL( | 450 blink::WebStringToGURL( |
| 450 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), | 451 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), |
| 451 request.referrerPolicy()); | 452 request.referrerPolicy()); |
| 452 params.disposition = WindowOpenDisposition::CURRENT_TAB; | 453 params.disposition = WindowOpenDisposition::CURRENT_TAB; |
| 453 params.should_replace_current_entry = should_replace_current_entry; | 454 params.should_replace_current_entry = should_replace_current_entry; |
| 454 params.user_gesture = | 455 params.user_gesture = |
| 455 blink::WebUserGestureIndicator::isProcessingUserGesture(); | 456 blink::WebUserGestureIndicator::isProcessingUserGesture(); |
| 456 blink::WebUserGestureIndicator::consumeUserGesture(); | 457 blink::WebUserGestureIndicator::consumeUserGesture(); |
| 457 Send(new FrameHostMsg_OpenURL(routing_id_, params)); | 458 Send(new FrameHostMsg_OpenURL(routing_id_, params)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 blink::WebLocalFrame* source) { | 495 blink::WebLocalFrame* source) { |
| 495 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); | 496 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
| 496 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); | 497 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
| 497 } | 498 } |
| 498 | 499 |
| 499 void RenderFrameProxy::frameFocused() { | 500 void RenderFrameProxy::frameFocused() { |
| 500 Send(new FrameHostMsg_FrameFocused(routing_id_)); | 501 Send(new FrameHostMsg_FrameFocused(routing_id_)); |
| 501 } | 502 } |
| 502 | 503 |
| 503 } // namespace | 504 } // namespace |
| OLD | NEW |