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

Side by Side Diff: net/url_request/url_fetcher_impl.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 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 #include "net/url_request/url_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void URLFetcherImpl::AddExtraRequestHeader(const std::string& header_line) { 86 void URLFetcherImpl::AddExtraRequestHeader(const std::string& header_line) {
87 core_->AddExtraRequestHeader(header_line); 87 core_->AddExtraRequestHeader(header_line);
88 } 88 }
89 89
90 void URLFetcherImpl::SetRequestContext( 90 void URLFetcherImpl::SetRequestContext(
91 URLRequestContextGetter* request_context_getter) { 91 URLRequestContextGetter* request_context_getter) {
92 core_->SetRequestContext(request_context_getter); 92 core_->SetRequestContext(request_context_getter);
93 } 93 }
94 94
95 void URLFetcherImpl::SetFirstPartyForCookies( 95 void URLFetcherImpl::SetInitiatorURL(const GURL& initiator) {
96 const GURL& first_party_for_cookies) { 96 core_->SetInitiatorURL(initiator);
97 core_->SetFirstPartyForCookies(first_party_for_cookies);
98 } 97 }
99 98
100 void URLFetcherImpl::SetURLRequestUserData( 99 void URLFetcherImpl::SetURLRequestUserData(
101 const void* key, 100 const void* key,
102 const CreateDataCallback& create_data_callback) { 101 const CreateDataCallback& create_data_callback) {
103 core_->SetURLRequestUserData(key, create_data_callback); 102 core_->SetURLRequestUserData(key, create_data_callback);
104 } 103 }
105 104
106 void URLFetcherImpl::SetStopOnRedirect(bool stop_on_redirect) { 105 void URLFetcherImpl::SetStopOnRedirect(bool stop_on_redirect) {
107 core_->SetStopOnRedirect(stop_on_redirect); 106 core_->SetStopOnRedirect(stop_on_redirect);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 URLFetcherFactory* URLFetcherImpl::factory() { 229 URLFetcherFactory* URLFetcherImpl::factory() {
231 return g_factory; 230 return g_factory;
232 } 231 }
233 232
234 // static 233 // static
235 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { 234 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) {
236 g_factory = factory; 235 g_factory = factory;
237 } 236 }
238 237
239 } // namespace net 238 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698