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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.referrer = Referrer( | 448 params.referrer = Referrer( |
449 blink::WebStringToGURL( | 449 blink::WebStringToGURL( |
450 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), | 450 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), |
451 request.referrerPolicy()); | 451 request.referrerPolicy()); |
452 params.disposition = CURRENT_TAB; | 452 params.disposition = WindowOpenDisposition::CURRENT_TAB; |
453 params.should_replace_current_entry = should_replace_current_entry; | 453 params.should_replace_current_entry = should_replace_current_entry; |
454 params.user_gesture = | 454 params.user_gesture = |
455 blink::WebUserGestureIndicator::isProcessingUserGesture(); | 455 blink::WebUserGestureIndicator::isProcessingUserGesture(); |
456 blink::WebUserGestureIndicator::consumeUserGesture(); | 456 blink::WebUserGestureIndicator::consumeUserGesture(); |
457 Send(new FrameHostMsg_OpenURL(routing_id_, params)); | 457 Send(new FrameHostMsg_OpenURL(routing_id_, params)); |
458 } | 458 } |
459 | 459 |
460 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { | 460 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { |
461 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); | 461 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); |
462 } | 462 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 blink::WebLocalFrame* source) { | 494 blink::WebLocalFrame* source) { |
495 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); | 495 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
496 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); | 496 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
497 } | 497 } |
498 | 498 |
499 void RenderFrameProxy::frameFocused() { | 499 void RenderFrameProxy::frameFocused() { |
500 Send(new FrameHostMsg_FrameFocused(routing_id_)); | 500 Send(new FrameHostMsg_FrameFocused(routing_id_)); |
501 } | 501 } |
502 | 502 |
503 } // namespace | 503 } // namespace |
OLD | NEW |