| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/common/url_fetcher.h" | 5 #include "content/common/url_fetcher.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 526 |
| 527 URLFetcher::Core::Core(URLFetcher* fetcher, | 527 URLFetcher::Core::Core(URLFetcher* fetcher, |
| 528 const GURL& original_url, | 528 const GURL& original_url, |
| 529 RequestType request_type, | 529 RequestType request_type, |
| 530 URLFetcher::Delegate* d) | 530 URLFetcher::Delegate* d) |
| 531 : fetcher_(fetcher), | 531 : fetcher_(fetcher), |
| 532 original_url_(original_url), | 532 original_url_(original_url), |
| 533 request_type_(request_type), | 533 request_type_(request_type), |
| 534 delegate_(d), | 534 delegate_(d), |
| 535 delegate_loop_proxy_( | 535 delegate_loop_proxy_( |
| 536 base::MessageLoopProxy::CreateForCurrentThread()), | 536 base::MessageLoopProxy::current()), |
| 537 request_(NULL), | 537 request_(NULL), |
| 538 load_flags_(net::LOAD_NORMAL), | 538 load_flags_(net::LOAD_NORMAL), |
| 539 response_code_(URLFetcher::kInvalidHttpResponseCode), | 539 response_code_(URLFetcher::kInvalidHttpResponseCode), |
| 540 buffer_(new net::IOBuffer(kBufferSize)), | 540 buffer_(new net::IOBuffer(kBufferSize)), |
| 541 was_fetched_via_proxy_(false), | 541 was_fetched_via_proxy_(false), |
| 542 is_chunked_upload_(false), | 542 is_chunked_upload_(false), |
| 543 num_retries_(0), | 543 num_retries_(0), |
| 544 was_cancelled_(false), | 544 was_cancelled_(false), |
| 545 response_destination_(STRING), | 545 response_destination_(STRING), |
| 546 automatically_retry_on_5xx_(true), | 546 automatically_retry_on_5xx_(true), |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 // static | 1113 // static |
| 1114 int URLFetcher::GetNumFetcherCores() { | 1114 int URLFetcher::GetNumFetcherCores() { |
| 1115 return Core::g_registry.Get().size(); | 1115 return Core::g_registry.Get().size(); |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 URLFetcher::Delegate* URLFetcher::delegate() const { | 1118 URLFetcher::Delegate* URLFetcher::delegate() const { |
| 1119 return core_->delegate(); | 1119 return core_->delegate(); |
| 1120 } | 1120 } |
| OLD | NEW |