| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::SaveResponseToFileAtPath( | 105 void URLFetcherImpl::SaveResponseToFileAtPath( |
| 106 const FilePath& file_path, | 106 const FilePath& file_path, |
| 107 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { | 107 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 108 core_->SaveResponseToFileAtPath(file_path, file_message_loop_proxy); | 108 core_->SaveResponseToFileAtPath(file_path, file_task_runner); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void URLFetcherImpl::SaveResponseToTemporaryFile( | 111 void URLFetcherImpl::SaveResponseToTemporaryFile( |
| 112 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) { | 112 scoped_refptr<base::TaskRunner> file_task_runner) { |
| 113 core_->SaveResponseToTemporaryFile(file_message_loop_proxy); | 113 core_->SaveResponseToTemporaryFile(file_task_runner); |
| 114 } | 114 } |
| 115 | 115 |
| 116 HttpResponseHeaders* URLFetcherImpl::GetResponseHeaders() const { | 116 HttpResponseHeaders* URLFetcherImpl::GetResponseHeaders() const { |
| 117 return core_->GetResponseHeaders(); | 117 return core_->GetResponseHeaders(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 HostPortPair URLFetcherImpl::GetSocketAddress() const { | 120 HostPortPair URLFetcherImpl::GetSocketAddress() const { |
| 121 return core_->GetSocketAddress(); | 121 return core_->GetSocketAddress(); |
| 122 } | 122 } |
| 123 | 123 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 URLFetcherFactory* URLFetcherImpl::factory() { | 192 URLFetcherFactory* URLFetcherImpl::factory() { |
| 193 return g_factory; | 193 return g_factory; |
| 194 } | 194 } |
| 195 | 195 |
| 196 // static | 196 // static |
| 197 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 197 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 198 g_factory = factory; | 198 g_factory = factory; |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace net | 201 } // namespace net |
| OLD | NEW |