Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: trunk/src/net/url_request/url_request_job_manager.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « trunk/src/net/url_request/url_request_file_job.cc ('k') | trunk/src/net/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698