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

Side by Side Diff: net/url_request/url_request_job_factory_impl.h

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r198785) Created 7 years, 7 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) 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 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 bool SetProtocolHandler(const std::string& scheme, 26 bool SetProtocolHandler(const std::string& scheme,
27 ProtocolHandler* protocol_handler); 27 ProtocolHandler* protocol_handler);
28 28
29 // URLRequestJobFactory implementation 29 // URLRequestJobFactory implementation
30 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( 30 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler(
31 const std::string& scheme, 31 const std::string& scheme,
32 URLRequest* request, 32 URLRequest* request,
33 NetworkDelegate* network_delegate) const OVERRIDE; 33 NetworkDelegate* network_delegate) const OVERRIDE;
34 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; 34 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE;
35 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; 35 virtual bool IsHandledURL(const GURL& url) const OVERRIDE;
36 virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE;
36 37
37 private: 38 private:
38 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; 39 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap;
39 40
40 ProtocolHandlerMap protocol_handler_map_; 41 ProtocolHandlerMap protocol_handler_map_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); 43 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl);
43 }; 44 };
44 45
45 } // namespace net 46 } // namespace net
46 47
47 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ 48 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_job_factory.cc ('k') | net/url_request/url_request_job_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698