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

Side by Side Diff: content/common/resource_dispatcher.cc

Issue 8801006: Make the transfer request code path use full referrers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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
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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/common/resource_dispatcher.h" 7 #include "content/common/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 : peer_(NULL), 83 : peer_(NULL),
84 dispatcher_(dispatcher), 84 dispatcher_(dispatcher),
85 request_id_(-1), 85 request_id_(-1),
86 routing_id_(request_info.routing_id), 86 routing_id_(request_info.routing_id),
87 is_synchronous_request_(false) { 87 is_synchronous_request_(false) {
88 DCHECK(dispatcher_) << "no resource dispatcher"; 88 DCHECK(dispatcher_) << "no resource dispatcher";
89 request_.method = request_info.method; 89 request_.method = request_info.method;
90 request_.url = request_info.url; 90 request_.url = request_info.url;
91 request_.first_party_for_cookies = request_info.first_party_for_cookies; 91 request_.first_party_for_cookies = request_info.first_party_for_cookies;
92 request_.referrer = request_info.referrer; 92 request_.referrer = request_info.referrer;
93 request_.referrer_policy = request_info.referrer_policy;
93 request_.headers = request_info.headers; 94 request_.headers = request_info.headers;
94 request_.load_flags = request_info.load_flags; 95 request_.load_flags = request_info.load_flags;
95 request_.origin_pid = request_info.requestor_pid; 96 request_.origin_pid = request_info.requestor_pid;
96 request_.resource_type = request_info.request_type; 97 request_.resource_type = request_info.request_type;
97 request_.request_context = request_info.request_context; 98 request_.request_context = request_info.request_context;
98 request_.appcache_host_id = request_info.appcache_host_id; 99 request_.appcache_host_id = request_info.appcache_host_id;
99 request_.download_to_file = request_info.download_to_file; 100 request_.download_to_file = request_info.download_to_file;
100 request_.has_user_gesture = request_info.has_user_gesture; 101 request_.has_user_gesture = request_info.has_user_gesture;
101 if (request_info.extra_data) { 102 if (request_info.extra_data) {
102 RequestExtraData* extra_data = 103 RequestExtraData* extra_data =
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 622
622 // static 623 // static
623 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 624 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
624 while (!queue->empty()) { 625 while (!queue->empty()) {
625 IPC::Message* message = queue->front(); 626 IPC::Message* message = queue->front();
626 ReleaseResourcesInDataMessage(*message); 627 ReleaseResourcesInDataMessage(*message);
627 queue->pop_front(); 628 queue->pop_front();
628 delete message; 629 delete message;
629 } 630 }
630 } 631 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_queue_unittest.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698