| 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/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
| 10 #include "net/url_request/url_fetcher_core.h" | 10 #include "net/url_request/url_fetcher_core.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 base::FilePath* out_response_path) const { | 186 base::FilePath* out_response_path) const { |
| 187 return core_->GetResponseAsFilePath(take_ownership, out_response_path); | 187 return core_->GetResponseAsFilePath(take_ownership, out_response_path); |
| 188 } | 188 } |
| 189 | 189 |
| 190 // static | 190 // static |
| 191 void URLFetcherImpl::CancelAll() { | 191 void URLFetcherImpl::CancelAll() { |
| 192 URLFetcherCore::CancelAll(); | 192 URLFetcherCore::CancelAll(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 // static | 195 // static |
| 196 void URLFetcherImpl::SetEnableInterceptionForTests(bool enabled) { | |
| 197 URLFetcherCore::SetEnableInterceptionForTests(enabled); | |
| 198 } | |
| 199 | |
| 200 // static | |
| 201 void URLFetcherImpl::SetIgnoreCertificateRequests(bool ignored) { | 196 void URLFetcherImpl::SetIgnoreCertificateRequests(bool ignored) { |
| 202 URLFetcherCore::SetIgnoreCertificateRequests(ignored); | 197 URLFetcherCore::SetIgnoreCertificateRequests(ignored); |
| 203 } | 198 } |
| 204 | 199 |
| 205 // static | 200 // static |
| 206 int URLFetcherImpl::GetNumFetcherCores() { | 201 int URLFetcherImpl::GetNumFetcherCores() { |
| 207 return URLFetcherCore::GetNumFetcherCores(); | 202 return URLFetcherCore::GetNumFetcherCores(); |
| 208 } | 203 } |
| 209 | 204 |
| 210 URLFetcherDelegate* URLFetcherImpl::delegate() const { | 205 URLFetcherDelegate* URLFetcherImpl::delegate() const { |
| 211 return core_->delegate(); | 206 return core_->delegate(); |
| 212 } | 207 } |
| 213 | 208 |
| 214 // static | 209 // static |
| 215 URLFetcherFactory* URLFetcherImpl::factory() { | 210 URLFetcherFactory* URLFetcherImpl::factory() { |
| 216 return g_factory; | 211 return g_factory; |
| 217 } | 212 } |
| 218 | 213 |
| 219 // static | 214 // static |
| 220 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 215 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 221 g_factory = factory; | 216 g_factory = factory; |
| 222 } | 217 } |
| 223 | 218 |
| 224 } // namespace net | 219 } // namespace net |
| OLD | NEW |