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

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: Feedback. Created 5 years, 2 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 } 748 }
749 749
750 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( 750 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
751 const RequestInfo& request_info, 751 const RequestInfo& request_info,
752 ResourceRequestBody* request_body, 752 ResourceRequestBody* request_body,
753 GURL* frame_origin) { 753 GURL* frame_origin) {
754 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); 754 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request);
755 request->method = request_info.method; 755 request->method = request_info.method;
756 request->url = request_info.url; 756 request->url = request_info.url;
757 request->first_party_for_cookies = request_info.first_party_for_cookies; 757 request->first_party_for_cookies = request_info.first_party_for_cookies;
758 request->request_initiator = request_info.request_initiator;
mmenke 2015/10/21 15:36:38 How does this work for ServiceWorker?
758 request->referrer = request_info.referrer.url; 759 request->referrer = request_info.referrer.url;
759 request->referrer_policy = request_info.referrer.policy; 760 request->referrer_policy = request_info.referrer.policy;
760 request->headers = request_info.headers; 761 request->headers = request_info.headers;
761 request->load_flags = request_info.load_flags; 762 request->load_flags = request_info.load_flags;
762 request->origin_pid = request_info.requestor_pid; 763 request->origin_pid = request_info.requestor_pid;
763 request->resource_type = request_info.request_type; 764 request->resource_type = request_info.request_type;
764 request->priority = request_info.priority; 765 request->priority = request_info.priority;
765 request->request_context = request_info.request_context; 766 request->request_context = request_info.request_context;
766 request->appcache_host_id = request_info.appcache_host_id; 767 request->appcache_host_id = request_info.appcache_host_id;
767 request->download_to_file = request_info.download_to_file; 768 request->download_to_file = request_info.download_to_file;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 *frame_origin = extra_data->frame_origin(); 816 *frame_origin = extra_data->frame_origin();
816 return request.Pass(); 817 return request.Pass();
817 } 818 }
818 819
819 void ResourceDispatcher::SetResourceSchedulingFilter( 820 void ResourceDispatcher::SetResourceSchedulingFilter(
820 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 821 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
821 resource_scheduling_filter_ = resource_scheduling_filter; 822 resource_scheduling_filter_ = resource_scheduling_filter;
822 } 823 }
823 824
824 } // namespace content 825 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698