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

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

Issue 10702137: Replaced static URLRequestHTTPJob factory with non-static protocol handler for HTTP jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed the way protocol handlers are set in profile_impl Created 8 years, 5 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) 2012 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_PROTOCOL_HANDLER_H_
6 #define NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "net/url_request/url_request_job_factory.h"
11
12 namespace net {
13
14 class CookieStore;
15 class FraudulentCertificateReporter;
16 class HttpTransactionFactory;
17 class NetworkDelegate;
18 class SSLConfigService;
19 class TransportSecurityState;
20 class URLRequestJob;
21 class URLRequestThrottlerManager;
22
23 // Implements a ProtocolHandler for HTTP.
24 class NET_EXPORT HttpProtocolHandler :
25 public URLRequestJobFactory::ProtocolHandler {
26 public:
27 HttpProtocolHandler(
28 HttpTransactionFactory* http_transaction_factory,
29 NetworkDelegate* network_delegate,
30 URLRequestThrottlerManager* throttler_manager,
31 const std::string& accept_language,
32 const std::string& accept_charset,
33 CookieStore* cookie_store,
34 FraudulentCertificateReporter* fraudulent_certificate_reporter,
35 SSLConfigService* ssl_config_service,
36 TransportSecurityState* transport_security_state);
37
38 virtual URLRequestJob* MaybeCreateJob(URLRequest* request) const OVERRIDE;
39
40 private:
41 HttpTransactionFactory* http_transaction_factory_;
42 NetworkDelegate* network_delegate_;
43 URLRequestThrottlerManager* throttler_manager_;
44 std::string accept_language_;
45 std::string accept_charset_;
46 CookieStore* cookie_store_;
47 FraudulentCertificateReporter* fraudulent_certificate_reporter_;
48 SSLConfigService* ssl_config_service_;
49 TransportSecurityState* transport_security_state_;
50
51 DISALLOW_COPY_AND_ASSIGN(HttpProtocolHandler);
52 };
53
54 } // namespace net
55
56 #endif // NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698