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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 void URLFetcher::Start() { | 1022 void URLFetcher::Start() { |
1023 core_->Start(); | 1023 core_->Start(); |
1024 } | 1024 } |
1025 | 1025 |
1026 void URLFetcher::StartWithRequestContextGetter( | 1026 void URLFetcher::StartWithRequestContextGetter( |
1027 net::URLRequestContextGetter* request_context_getter) { | 1027 net::URLRequestContextGetter* request_context_getter) { |
1028 set_request_context(request_context_getter); | 1028 set_request_context(request_context_getter); |
1029 core_->Start(); | 1029 core_->Start(); |
1030 } | 1030 } |
1031 | 1031 |
| 1032 const GURL& URLFetcher::original_url() const { |
| 1033 return core_->original_url_; |
| 1034 } |
| 1035 |
1032 const GURL& URLFetcher::url() const { | 1036 const GURL& URLFetcher::url() const { |
1033 return core_->url_; | 1037 return core_->url_; |
1034 } | 1038 } |
1035 | 1039 |
1036 const net::URLRequestStatus& URLFetcher::status() const { | 1040 const net::URLRequestStatus& URLFetcher::status() const { |
1037 return core_->status_; | 1041 return core_->status_; |
1038 } | 1042 } |
1039 | 1043 |
1040 int URLFetcher::response_code() const { | 1044 int URLFetcher::response_code() const { |
1041 return core_->response_code_; | 1045 return core_->response_code_; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 } | 1115 } |
1112 | 1116 |
1113 // static | 1117 // static |
1114 int URLFetcher::GetNumFetcherCores() { | 1118 int URLFetcher::GetNumFetcherCores() { |
1115 return Core::g_registry.Get().size(); | 1119 return Core::g_registry.Get().size(); |
1116 } | 1120 } |
1117 | 1121 |
1118 URLFetcher::Delegate* URLFetcher::delegate() const { | 1122 URLFetcher::Delegate* URLFetcher::delegate() const { |
1119 return core_->delegate(); | 1123 return core_->delegate(); |
1120 } | 1124 } |
OLD | NEW |