| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 net::URLRequest::ProtocolFactory* factory; | 26 net::URLRequest::ProtocolFactory* factory; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace | 29 } // namespace |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 | 32 |
| 33 static const SchemeToFactory kBuiltinFactories[] = { | 33 static const SchemeToFactory kBuiltinFactories[] = { |
| 34 { "http", URLRequestHttpJob::Factory }, | 34 { "http", URLRequestHttpJob::Factory }, |
| 35 { "https", URLRequestHttpJob::Factory }, | 35 { "https", URLRequestHttpJob::Factory }, |
| 36 { "httpsv", URLRequestHttpJob::Factory }, |
| 36 { "file", URLRequestFileJob::Factory }, | 37 { "file", URLRequestFileJob::Factory }, |
| 37 { "ftp", URLRequestFtpJob::Factory }, | 38 { "ftp", URLRequestFtpJob::Factory }, |
| 38 { "about", URLRequestAboutJob::Factory }, | 39 { "about", URLRequestAboutJob::Factory }, |
| 39 { "data", URLRequestDataJob::Factory }, | 40 { "data", URLRequestDataJob::Factory }, |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 // static | 43 // static |
| 43 URLRequestJobManager* URLRequestJobManager::GetInstance() { | 44 URLRequestJobManager* URLRequestJobManager::GetInstance() { |
| 44 return Singleton<URLRequestJobManager>::get(); | 45 return Singleton<URLRequestJobManager>::get(); |
| 45 } | 46 } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 URLRequestJobManager::URLRequestJobManager() : enable_file_access_(false) { | 210 URLRequestJobManager::URLRequestJobManager() : enable_file_access_(false) { |
| 210 #ifndef NDEBUG | 211 #ifndef NDEBUG |
| 211 allowed_thread_ = 0; | 212 allowed_thread_ = 0; |
| 212 allowed_thread_initialized_ = false; | 213 allowed_thread_initialized_ = false; |
| 213 #endif | 214 #endif |
| 214 } | 215 } |
| 215 | 216 |
| 216 URLRequestJobManager::~URLRequestJobManager() {} | 217 URLRequestJobManager::~URLRequestJobManager() {} |
| 217 | 218 |
| 218 } // namespace net | 219 } // namespace net |
| OLD | NEW |