OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |