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

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

Issue 8616006: Implement meta referrer (part 1/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | webkit/glue/webkit_glue.gypi » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 content::PageTransition transition_type = content::PAGE_TRANSITION_LINK; 2681 content::PageTransition transition_type = content::PAGE_TRANSITION_LINK;
2682 DocumentState* document_state = DocumentState::FromDataSource(data_source); 2682 DocumentState* document_state = DocumentState::FromDataSource(data_source);
2683 NavigationState* navigation_state = document_state->navigation_state(); 2683 NavigationState* navigation_state = document_state->navigation_state();
2684 if (document_state) { 2684 if (document_state) {
2685 if (document_state->is_cache_policy_override_set()) 2685 if (document_state->is_cache_policy_override_set())
2686 request.setCachePolicy(document_state->cache_policy_override()); 2686 request.setCachePolicy(document_state->cache_policy_override());
2687 transition_type = navigation_state->transition_type(); 2687 transition_type = navigation_state->transition_type();
2688 } 2688 }
2689 2689
2690 request.setExtraData( 2690 request.setExtraData(
2691 new RequestExtraData((frame == top_frame), 2691 new RequestExtraData(frame->referrerPolicy(),
2692 (frame == top_frame),
2692 frame->identifier(), 2693 frame->identifier(),
2693 frame->parent() == top_frame, 2694 frame->parent() == top_frame,
2694 frame->parent() ? frame->parent()->identifier() : -1, 2695 frame->parent() ? frame->parent()->identifier() : -1,
2695 transition_type)); 2696 transition_type));
2696 2697
2697 DocumentState* top_document_state = 2698 DocumentState* top_document_state =
2698 DocumentState::FromDataSource(top_data_source); 2699 DocumentState::FromDataSource(top_data_source);
2699 // TODO(gavinp): separate out prefetching and prerender field trials 2700 // TODO(gavinp): separate out prefetching and prerender field trials
2700 // if the rel=prerender rel type is sticking around. 2701 // if the rel=prerender rel type is sticking around.
2701 if (top_document_state && 2702 if (top_document_state &&
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
4729 return !!RenderThreadImpl::current()->compositor_thread(); 4730 return !!RenderThreadImpl::current()->compositor_thread();
4730 } 4731 }
4731 4732
4732 void RenderViewImpl::OnJavaBridgeInit( 4733 void RenderViewImpl::OnJavaBridgeInit(
4733 const IPC::ChannelHandle& channel_handle) { 4734 const IPC::ChannelHandle& channel_handle) {
4734 DCHECK(!java_bridge_dispatcher_.get()); 4735 DCHECK(!java_bridge_dispatcher_.get());
4735 #if defined(ENABLE_JAVA_BRIDGE) 4736 #if defined(ENABLE_JAVA_BRIDGE)
4736 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); 4737 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle));
4737 #endif 4738 #endif
4738 } 4739 }
OLDNEW
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698