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

Side by Side Diff: net/url_request/url_fetcher_impl.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 | « net/url_request/url_fetcher_impl.h ('k') | net/url_request/url_request.h » ('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 #include "net/url_request/url_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "net/base/upload_data_stream.h" 9 #include "net/base/upload_data_stream.h"
10 #include "net/url_request/url_fetcher_core.h" 10 #include "net/url_request/url_fetcher_core.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void URLFetcherImpl::SetRequestContext( 88 void URLFetcherImpl::SetRequestContext(
89 URLRequestContextGetter* request_context_getter) { 89 URLRequestContextGetter* request_context_getter) {
90 core_->SetRequestContext(request_context_getter); 90 core_->SetRequestContext(request_context_getter);
91 } 91 }
92 92
93 void URLFetcherImpl::SetFirstPartyForCookies( 93 void URLFetcherImpl::SetFirstPartyForCookies(
94 const GURL& first_party_for_cookies) { 94 const GURL& first_party_for_cookies) {
95 core_->SetFirstPartyForCookies(first_party_for_cookies); 95 core_->SetFirstPartyForCookies(first_party_for_cookies);
96 } 96 }
97 97
98 void URLFetcherImpl::SetRequestorOrigin(const url::Origin& requestor_origin) {
99 core_->SetRequestorOrigin(requestor_origin);
100 }
101
98 void URLFetcherImpl::SetURLRequestUserData( 102 void URLFetcherImpl::SetURLRequestUserData(
99 const void* key, 103 const void* key,
100 const CreateDataCallback& create_data_callback) { 104 const CreateDataCallback& create_data_callback) {
101 core_->SetURLRequestUserData(key, create_data_callback); 105 core_->SetURLRequestUserData(key, create_data_callback);
102 } 106 }
103 107
104 void URLFetcherImpl::SetStopOnRedirect(bool stop_on_redirect) { 108 void URLFetcherImpl::SetStopOnRedirect(bool stop_on_redirect) {
105 core_->SetStopOnRedirect(stop_on_redirect); 109 core_->SetStopOnRedirect(stop_on_redirect);
106 } 110 }
107 111
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 URLFetcherFactory* URLFetcherImpl::factory() { 220 URLFetcherFactory* URLFetcherImpl::factory() {
217 return g_factory; 221 return g_factory;
218 } 222 }
219 223
220 // static 224 // static
221 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { 225 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) {
222 g_factory = factory; 226 g_factory = factory;
223 } 227 }
224 228
225 } // namespace net 229 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_impl.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698