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

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

Issue 12217095: Remove unused pieces of URLRequestJobFactory API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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>
mmenke 2013/02/11 17:19:32 While you're here, please add a blank line after t
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
mmenke 2013/02/11 17:19:32 Also while you're here, please add base/compiler_s
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/url_request/url_request_job_factory.h" 12 #include "net/url_request/url_request_job_factory.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory { 16 class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory {
17 public: 17 public:
18 URLRequestJobFactoryImpl(); 18 URLRequestJobFactoryImpl();
19 virtual ~URLRequestJobFactoryImpl(); 19 virtual ~URLRequestJobFactoryImpl();
20 20
21 // Sets the ProtocolHandler for a scheme. Returns true on success, false on
22 // failure (a ProtocolHandler already exists for |scheme|). On success,
23 // URLRequestJobFactory takes ownership of |protocol_handler|.
24 bool SetProtocolHandler(const std::string& scheme,
25 ProtocolHandler* protocol_handler);
26
21 // URLRequestJobFactory implementation 27 // URLRequestJobFactory implementation
22 virtual bool SetProtocolHandler(const std::string& scheme,
23 ProtocolHandler* protocol_handler) OVERRIDE;
24 virtual void AddInterceptor(Interceptor* interceptor) OVERRIDE;
25 virtual URLRequestJob* MaybeCreateJobWithInterceptor(
26 URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE;
27 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( 28 virtual URLRequestJob* MaybeCreateJobWithProtocolHandler(
28 const std::string& scheme, 29 const std::string& scheme,
29 URLRequest* request, 30 URLRequest* request,
30 NetworkDelegate* network_delegate) const OVERRIDE; 31 NetworkDelegate* network_delegate) const OVERRIDE;
31 virtual URLRequestJob* MaybeInterceptRedirect(
32 const GURL& location,
33 URLRequest* request,
34 NetworkDelegate* network_delegate) const OVERRIDE;
35 virtual URLRequestJob* MaybeInterceptResponse(
36 URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE;
37 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; 32 virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE;
38 virtual bool IsHandledURL(const GURL& url) const OVERRIDE; 33 virtual bool IsHandledURL(const GURL& url) const OVERRIDE;
39 34
40 private: 35 private:
41 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; 36 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap;
42 typedef std::vector<Interceptor*> InterceptorList;
43 37
44 ProtocolHandlerMap protocol_handler_map_; 38 ProtocolHandlerMap protocol_handler_map_;
45 InterceptorList interceptors_;
46 39
47 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); 40 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl);
48 }; 41 };
49 42
50 } // namespace net 43 } // namespace net
51 44
52 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_ 45 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698