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

Side by Side Diff: content/child/npapi/plugin_url_fetcher.cc

Issue 135973009: Don't try to guess the referrer policy, but use the one associated with the request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 months 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/child/npapi/plugin_url_fetcher.h" 5 #include "content/child/npapi/plugin_url_fetcher.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/child/child_thread.h" 8 #include "content/child/child_thread.h"
9 #include "content/child/npapi/webplugin.h" 9 #include "content/child/npapi/webplugin.h"
10 #include "content/child/npapi/plugin_host.h" 10 #include "content/child/npapi/plugin_host.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 webkit_glue::ResourceLoaderBridge::RequestInfo request_info; 99 webkit_glue::ResourceLoaderBridge::RequestInfo request_info;
100 request_info.method = method; 100 request_info.method = method;
101 request_info.url = url; 101 request_info.url = url;
102 request_info.first_party_for_cookies = first_party_for_cookies; 102 request_info.first_party_for_cookies = first_party_for_cookies;
103 request_info.referrer = referrer; 103 request_info.referrer = referrer;
104 request_info.load_flags = net::LOAD_NORMAL; 104 request_info.load_flags = net::LOAD_NORMAL;
105 request_info.requestor_pid = origin_pid; 105 request_info.requestor_pid = origin_pid;
106 request_info.request_type = ResourceType::OBJECT; 106 request_info.request_type = ResourceType::OBJECT;
107 request_info.routing_id = render_view_id; 107 request_info.routing_id = render_view_id;
108 108
109 RequestExtraData extra_data(blink::WebReferrerPolicyDefault, 109 RequestExtraData extra_data(blink::WebPageVisibilityStateVisible,
110 blink::WebPageVisibilityStateVisible,
111 base::string16(), 110 base::string16(),
112 false, 111 false,
113 render_frame_id, 112 render_frame_id,
114 false, 113 false,
115 -1, 114 -1,
116 GURL(), 115 GURL(),
117 false, 116 false,
118 -1, 117 -1,
119 true, 118 true,
120 PAGE_TRANSITION_LINK, 119 PAGE_TRANSITION_LINK,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 349 }
351 350
352 if (error_code == net::OK) { 351 if (error_code == net::OK) {
353 plugin_stream_->DidFinishLoading(resource_id_); 352 plugin_stream_->DidFinishLoading(resource_id_);
354 } else { 353 } else {
355 plugin_stream_->DidFail(resource_id_); 354 plugin_stream_->DidFail(resource_id_);
356 } 355 }
357 } 356 }
358 357
359 } // namespace content 358 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/referrer_policy/referrer-policy-start.html ('k') | content/child/request_extra_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698