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

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

Issue 2326153003: Rename referrerPolicy() methods to getReferrerPolicy(). (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 void RenderFrameProxy::navigate(const blink::WebURLRequest& request, 448 void RenderFrameProxy::navigate(const blink::WebURLRequest& request,
449 bool should_replace_current_entry) { 449 bool should_replace_current_entry) {
450 FrameHostMsg_OpenURL_Params params; 450 FrameHostMsg_OpenURL_Params params;
451 params.url = request.url(); 451 params.url = request.url();
452 params.uses_post = request.httpMethod().utf8() == "POST"; 452 params.uses_post = request.httpMethod().utf8() == "POST";
453 params.resource_request_body = GetRequestBodyForWebURLRequest(request); 453 params.resource_request_body = GetRequestBodyForWebURLRequest(request);
454 params.extra_headers = GetWebURLRequestHeaders(request); 454 params.extra_headers = GetWebURLRequestHeaders(request);
455 params.referrer = Referrer( 455 params.referrer = Referrer(
456 blink::WebStringToGURL( 456 blink::WebStringToGURL(
457 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), 457 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))),
458 request.referrerPolicy()); 458 request.getReferrerPolicy());
459 params.disposition = WindowOpenDisposition::CURRENT_TAB; 459 params.disposition = WindowOpenDisposition::CURRENT_TAB;
460 params.should_replace_current_entry = should_replace_current_entry; 460 params.should_replace_current_entry = should_replace_current_entry;
461 params.user_gesture = 461 params.user_gesture =
462 blink::WebUserGestureIndicator::isProcessingUserGesture(); 462 blink::WebUserGestureIndicator::isProcessingUserGesture();
463 blink::WebUserGestureIndicator::consumeUserGesture(); 463 blink::WebUserGestureIndicator::consumeUserGesture();
464 Send(new FrameHostMsg_OpenURL(routing_id_, params)); 464 Send(new FrameHostMsg_OpenURL(routing_id_, params));
465 } 465 }
466 466
467 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { 467 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) {
468 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); 468 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 blink::WebLocalFrame* source) { 505 blink::WebLocalFrame* source) {
506 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 506 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
507 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 507 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
508 } 508 }
509 509
510 void RenderFrameProxy::frameFocused() { 510 void RenderFrameProxy::frameFocused() {
511 Send(new FrameHostMsg_FrameFocused(routing_id_)); 511 Send(new FrameHostMsg_FrameFocused(routing_id_));
512 } 512 }
513 513
514 } // namespace 514 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698