| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 void URLFetcherImpl::SetMaxRetriesOn5xx(int max_retries) { | 106 void URLFetcherImpl::SetMaxRetriesOn5xx(int max_retries) { |
| 107 core_->SetMaxRetriesOn5xx(max_retries); | 107 core_->SetMaxRetriesOn5xx(max_retries); |
| 108 } | 108 } |
| 109 | 109 |
| 110 int URLFetcherImpl::GetMaxRetriesOn5xx() const { | 110 int URLFetcherImpl::GetMaxRetriesOn5xx() const { |
| 111 return core_->GetMaxRetriesOn5xx(); | 111 return core_->GetMaxRetriesOn5xx(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 | |
| 115 base::TimeDelta URLFetcherImpl::GetBackoffDelay() const { | 114 base::TimeDelta URLFetcherImpl::GetBackoffDelay() const { |
| 116 return core_->GetBackoffDelay(); | 115 return core_->GetBackoffDelay(); |
| 117 } | 116 } |
| 118 | 117 |
| 119 void URLFetcherImpl::SetAutomaticallyRetryOnNetworkChanges(int max_retries) { | 118 void URLFetcherImpl::SetAutomaticallyRetryOnNetworkChanges(int max_retries) { |
| 120 core_->SetAutomaticallyRetryOnNetworkChanges(max_retries); | 119 core_->SetAutomaticallyRetryOnNetworkChanges(max_retries); |
| 121 } | 120 } |
| 122 | 121 |
| 123 void URLFetcherImpl::SaveResponseToFileAtPath( | 122 void URLFetcherImpl::SaveResponseToFileAtPath( |
| 124 const base::FilePath& file_path, | 123 const base::FilePath& file_path, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 URLFetcherFactory* URLFetcherImpl::factory() { | 214 URLFetcherFactory* URLFetcherImpl::factory() { |
| 216 return g_factory; | 215 return g_factory; |
| 217 } | 216 } |
| 218 | 217 |
| 219 // static | 218 // static |
| 220 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 219 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 221 g_factory = factory; | 220 g_factory = factory; |
| 222 } | 221 } |
| 223 | 222 |
| 224 } // namespace net | 223 } // namespace net |
| OLD | NEW |