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

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

Issue 1411813003: Teach URLRequest about initiator checks for First-Party-Only cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 } 815 }
816 816
817 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( 817 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
818 const RequestInfo& request_info, 818 const RequestInfo& request_info,
819 ResourceRequestBody* request_body, 819 ResourceRequestBody* request_body,
820 GURL* frame_origin) { 820 GURL* frame_origin) {
821 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); 821 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request);
822 request->method = request_info.method; 822 request->method = request_info.method;
823 request->url = request_info.url; 823 request->url = request_info.url;
824 request->first_party_for_cookies = request_info.first_party_for_cookies; 824 request->first_party_for_cookies = request_info.first_party_for_cookies;
825 request->request_initiator = request_info.request_initiator;
825 request->referrer = request_info.referrer.url; 826 request->referrer = request_info.referrer.url;
826 request->referrer_policy = request_info.referrer.policy; 827 request->referrer_policy = request_info.referrer.policy;
827 request->headers = request_info.headers; 828 request->headers = request_info.headers;
828 request->load_flags = request_info.load_flags; 829 request->load_flags = request_info.load_flags;
829 request->origin_pid = request_info.requestor_pid; 830 request->origin_pid = request_info.requestor_pid;
830 request->resource_type = request_info.request_type; 831 request->resource_type = request_info.request_type;
831 request->priority = request_info.priority; 832 request->priority = request_info.priority;
832 request->request_context = request_info.request_context; 833 request->request_context = request_info.request_context;
833 request->appcache_host_id = request_info.appcache_host_id; 834 request->appcache_host_id = request_info.appcache_host_id;
834 request->download_to_file = request_info.download_to_file; 835 request->download_to_file = request_info.download_to_file;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 *frame_origin = extra_data->frame_origin(); 884 *frame_origin = extra_data->frame_origin();
884 return request; 885 return request;
885 } 886 }
886 887
887 void ResourceDispatcher::SetResourceSchedulingFilter( 888 void ResourceDispatcher::SetResourceSchedulingFilter(
888 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 889 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
889 resource_scheduling_filter_ = resource_scheduling_filter; 890 resource_scheduling_filter_ = resource_scheduling_filter;
890 } 891 }
891 892
892 } // namespace content 893 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698