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

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

Issue 1253353004: WIP: Teach "First-Party-Only" cookies about the requestor origin. Base URL: https://chromium.googlesource.com/chromium/src.git@cookie-options
Patch Set: Created 5 years, 4 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
« no previous file with comments | « content/child/request_info.h ('k') | content/child/web_url_loader_impl.cc » ('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) 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 728 }
729 729
730 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest( 730 scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
731 const RequestInfo& request_info, 731 const RequestInfo& request_info,
732 ResourceRequestBody* request_body, 732 ResourceRequestBody* request_body,
733 GURL* frame_origin) { 733 GURL* frame_origin) {
734 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request); 734 scoped_ptr<ResourceHostMsg_Request> request(new ResourceHostMsg_Request);
735 request->method = request_info.method; 735 request->method = request_info.method;
736 request->url = request_info.url; 736 request->url = request_info.url;
737 request->first_party_for_cookies = request_info.first_party_for_cookies; 737 request->first_party_for_cookies = request_info.first_party_for_cookies;
738 request->requestor_origin = request_info.requestor_origin;
738 request->referrer = request_info.referrer.url; 739 request->referrer = request_info.referrer.url;
739 request->referrer_policy = request_info.referrer.policy; 740 request->referrer_policy = request_info.referrer.policy;
740 request->headers = request_info.headers; 741 request->headers = request_info.headers;
741 request->load_flags = request_info.load_flags; 742 request->load_flags = request_info.load_flags;
742 request->origin_pid = request_info.requestor_pid; 743 request->origin_pid = request_info.requestor_pid;
743 request->resource_type = request_info.request_type; 744 request->resource_type = request_info.request_type;
744 request->priority = request_info.priority; 745 request->priority = request_info.priority;
745 request->request_context = request_info.request_context; 746 request->request_context = request_info.request_context;
746 request->appcache_host_id = request_info.appcache_host_id; 747 request->appcache_host_id = request_info.appcache_host_id;
747 request->download_to_file = request_info.download_to_file; 748 request->download_to_file = request_info.download_to_file;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 extra_data->transferred_request_request_id(); 789 extra_data->transferred_request_request_id();
789 request->service_worker_provider_id = 790 request->service_worker_provider_id =
790 extra_data->service_worker_provider_id(); 791 extra_data->service_worker_provider_id();
791 request->request_body = request_body; 792 request->request_body = request_body;
792 if (frame_origin) 793 if (frame_origin)
793 *frame_origin = extra_data->frame_origin(); 794 *frame_origin = extra_data->frame_origin();
794 return request.Pass(); 795 return request.Pass();
795 } 796 }
796 797
797 } // namespace content 798 } // namespace content
OLDNEW
« no previous file with comments | « content/child/request_info.h ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698