| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 } | 180 } |
| 181 | 181 |
| 182 const URLRequestStatus& URLFetcherImpl::GetStatus() const { | 182 const URLRequestStatus& URLFetcherImpl::GetStatus() const { |
| 183 return core_->GetStatus(); | 183 return core_->GetStatus(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 int URLFetcherImpl::GetResponseCode() const { | 186 int URLFetcherImpl::GetResponseCode() const { |
| 187 return core_->GetResponseCode(); | 187 return core_->GetResponseCode(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 const ResponseCookies& URLFetcherImpl::GetCookies() const { | |
| 191 return core_->GetCookies(); | |
| 192 } | |
| 193 | |
| 194 void URLFetcherImpl::ReceivedContentWasMalformed() { | 190 void URLFetcherImpl::ReceivedContentWasMalformed() { |
| 195 core_->ReceivedContentWasMalformed(); | 191 core_->ReceivedContentWasMalformed(); |
| 196 } | 192 } |
| 197 | 193 |
| 198 bool URLFetcherImpl::GetResponseAsString( | 194 bool URLFetcherImpl::GetResponseAsString( |
| 199 std::string* out_response_string) const { | 195 std::string* out_response_string) const { |
| 200 return core_->GetResponseAsString(out_response_string); | 196 return core_->GetResponseAsString(out_response_string); |
| 201 } | 197 } |
| 202 | 198 |
| 203 bool URLFetcherImpl::GetResponseAsFilePath( | 199 bool URLFetcherImpl::GetResponseAsFilePath( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 229 URLFetcherFactory* URLFetcherImpl::factory() { | 225 URLFetcherFactory* URLFetcherImpl::factory() { |
| 230 return g_factory; | 226 return g_factory; |
| 231 } | 227 } |
| 232 | 228 |
| 233 // static | 229 // static |
| 234 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 230 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 235 g_factory = factory; | 231 g_factory = factory; |
| 236 } | 232 } |
| 237 | 233 |
| 238 } // namespace net | 234 } // namespace net |
| OLD | NEW |