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