| 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_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "net/url_request/url_fetcher_core.h" | 9 #include "net/url_request/url_fetcher_core.h" |
| 10 #include "net/url_request/url_fetcher_factory.h" | 10 #include "net/url_request/url_fetcher_factory.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 int URLFetcherImpl::GetMaxRetries() const { | 96 int URLFetcherImpl::GetMaxRetries() const { |
| 97 return core_->GetMaxRetries(); | 97 return core_->GetMaxRetries(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 | 100 |
| 101 base::TimeDelta URLFetcherImpl::GetBackoffDelay() const { | 101 base::TimeDelta URLFetcherImpl::GetBackoffDelay() const { |
| 102 return core_->GetBackoffDelay(); | 102 return core_->GetBackoffDelay(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void URLFetcherImpl::SetAutomaticallyRetryOnNetworkChanges(int max_retries) { |
| 106 core_->SetAutomaticallyRetryOnNetworkChanges(max_retries); |
| 107 } |
| 108 |
| 105 void URLFetcherImpl::SaveResponseToFileAtPath( | 109 void URLFetcherImpl::SaveResponseToFileAtPath( |
| 106 const FilePath& file_path, | 110 const FilePath& file_path, |
| 107 scoped_refptr<base::TaskRunner> file_task_runner) { | 111 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 108 core_->SaveResponseToFileAtPath(file_path, file_task_runner); | 112 core_->SaveResponseToFileAtPath(file_path, file_task_runner); |
| 109 } | 113 } |
| 110 | 114 |
| 111 void URLFetcherImpl::SaveResponseToTemporaryFile( | 115 void URLFetcherImpl::SaveResponseToTemporaryFile( |
| 112 scoped_refptr<base::TaskRunner> file_task_runner) { | 116 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 113 core_->SaveResponseToTemporaryFile(file_task_runner); | 117 core_->SaveResponseToTemporaryFile(file_task_runner); |
| 114 } | 118 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 URLFetcherFactory* URLFetcherImpl::factory() { | 196 URLFetcherFactory* URLFetcherImpl::factory() { |
| 193 return g_factory; | 197 return g_factory; |
| 194 } | 198 } |
| 195 | 199 |
| 196 // static | 200 // static |
| 197 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 201 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 198 g_factory = factory; | 202 g_factory = factory; |
| 199 } | 203 } |
| 200 | 204 |
| 201 } // namespace net | 205 } // namespace net |
| OLD | NEW |