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

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

Issue 10836248: Turned job_factory into a pure virtual class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed includes Created 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_URL_REQUEST_HTTP_INTERCEPT_JOB_FACTORY_H_
6 #define NET_URL_REQUEST_HTTP_INTERCEPT_JOB_FACTORY_H_
7
8 #include "base/basictypes.h"
9 #include "base/threading/non_thread_safe.h"
erikwright (departed) 2012/08/16 15:49:01 why is this required?
shalev 2012/08/16 18:40:39 Done.
10 #include "net/base/net_export.h"
11 #include "net/url_request/url_request_job_factory.h"
12
13 class GURL;
14
15 namespace net {
16
17 class URLRequest;
18 class URLRequestJob;
19
20 class NET_EXPORT HttpInterceptJobFactory : public URLRequestJobFactory {
erikwright (departed) 2012/08/16 15:49:01 class comments required.
shalev 2012/08/16 18:40:39 Done.
21 public:
22 HttpInterceptJobFactory(const URLRequestJobFactory* job_factory,
23 ProtocolHandler* protocol_handler);
24 ~HttpInterceptJobFactory();
25
26 bool SetProtocolHandler(const std::string& scheme,
erikwright (departed) 2012/08/16 15:49:01 These are presumably overrides from URLRequestJobF
shalev 2012/08/16 18:40:39 Done.
27 ProtocolHandler* protocol_handler);
28
29 void AddInterceptor(Interceptor* interceptor);
30
31 URLRequestJob* MaybeCreateJobWithInterceptor(URLRequest* request) const;
32
33 URLRequestJob* MaybeCreateJobWithProtocolHandler(const std::string& scheme,
34 URLRequest* request) const;
35
36 URLRequestJob* MaybeInterceptRedirect(const GURL& location,
37 URLRequest* request) const;
38
39 URLRequestJob* MaybeInterceptResponse(URLRequest* request) const;
40
41 bool IsHandledProtocol(const std::string& scheme) const;
42
43 bool IsHandledURL(const GURL& url) const;
44
45 private:
46 const URLRequestJobFactory* job_factory_;
47 ProtocolHandler* protocol_handler_;
48
49 DISALLOW_COPY_AND_ASSIGN(HttpInterceptJobFactory);
50 };
51
52 } // namespace net
53
54 #endif // NET_URL_REQUEST_HTTP_INTERCEPT_JOB_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698