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_request_job_manager.h" | 5 #include "net/url_request/url_request_job_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 network_delegate); | 153 network_delegate); |
154 if (job) | 154 if (job) |
155 return job; | 155 return job; |
156 } | 156 } |
157 return NULL; | 157 return NULL; |
158 } | 158 } |
159 | 159 |
160 // static | 160 // static |
161 bool URLRequestJobManager::SupportsScheme(const std::string& scheme) { | 161 bool URLRequestJobManager::SupportsScheme(const std::string& scheme) { |
162 for (size_t i = 0; i < arraysize(kBuiltinFactories); ++i) { | 162 for (size_t i = 0; i < arraysize(kBuiltinFactories); ++i) { |
163 if (base::LowerCaseEqualsASCII(scheme, kBuiltinFactories[i].scheme)) | 163 if (LowerCaseEqualsASCII(scheme, kBuiltinFactories[i].scheme)) |
164 return true; | 164 return true; |
165 } | 165 } |
166 | 166 |
167 return false; | 167 return false; |
168 } | 168 } |
169 | 169 |
170 void URLRequestJobManager::RegisterRequestInterceptor( | 170 void URLRequestJobManager::RegisterRequestInterceptor( |
171 URLRequest::Interceptor* interceptor) { | 171 URLRequest::Interceptor* interceptor) { |
172 DCHECK(IsAllowedThread()); | 172 DCHECK(IsAllowedThread()); |
173 | 173 |
(...skipping 17 matching lines...) Expand all Loading... |
191 } | 191 } |
192 | 192 |
193 URLRequestJobManager::URLRequestJobManager() | 193 URLRequestJobManager::URLRequestJobManager() |
194 : allowed_thread_(0), | 194 : allowed_thread_(0), |
195 allowed_thread_initialized_(false) { | 195 allowed_thread_initialized_(false) { |
196 } | 196 } |
197 | 197 |
198 URLRequestJobManager::~URLRequestJobManager() {} | 198 URLRequestJobManager::~URLRequestJobManager() {} |
199 | 199 |
200 } // namespace net | 200 } // namespace net |
OLD | NEW |