| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 if (source_frame) { | 461 if (source_frame) { |
| 462 RenderFrameImpl* source_render_frame = | 462 RenderFrameImpl* source_render_frame = |
| 463 RenderFrameImpl::FromWebFrame(source_frame); | 463 RenderFrameImpl::FromWebFrame(source_frame); |
| 464 if (source_render_frame) | 464 if (source_render_frame) |
| 465 params.source_routing_id = source_render_frame->GetRoutingID(); | 465 params.source_routing_id = source_render_frame->GetRoutingID(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); | 468 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); |
| 469 } | 469 } |
| 470 | 470 |
| 471 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, | 471 void RenderFrameProxy::navigate(blink::WebLocalFrame* initiator_frame, |
| 472 const blink::WebURLRequest& request, |
| 472 bool should_replace_current_entry) { | 473 bool should_replace_current_entry) { |
| 473 FrameHostMsg_OpenURL_Params params; | 474 FrameHostMsg_OpenURL_Params params; |
| 474 params.url = request.url(); | 475 params.url = request.url(); |
| 475 params.uses_post = request.httpMethod().utf8() == "POST"; | 476 params.uses_post = request.httpMethod().utf8() == "POST"; |
| 476 params.resource_request_body = GetRequestBodyForWebURLRequest(request); | 477 params.resource_request_body = GetRequestBodyForWebURLRequest(request); |
| 477 params.extra_headers = GetWebURLRequestHeaders(request); | 478 params.extra_headers = GetWebURLRequestHeaders(request); |
| 478 params.referrer = Referrer( | 479 params.referrer = Referrer( |
| 479 blink::WebStringToGURL( | 480 blink::WebStringToGURL( |
| 480 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), | 481 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), |
| 481 request.getReferrerPolicy()); | 482 request.getReferrerPolicy()); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 blink::WebLocalFrame* source) { | 525 blink::WebLocalFrame* source) { |
| 525 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); | 526 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
| 526 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); | 527 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
| 527 } | 528 } |
| 528 | 529 |
| 529 void RenderFrameProxy::frameFocused() { | 530 void RenderFrameProxy::frameFocused() { |
| 530 Send(new FrameHostMsg_FrameFocused(routing_id_)); | 531 Send(new FrameHostMsg_FrameFocused(routing_id_)); |
| 531 } | 532 } |
| 532 | 533 |
| 533 } // namespace | 534 } // namespace |
| OLD | NEW |