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

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: Fixes requested in comments 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 <string>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "net/url_request/url_request_job_factory.h"
13
14 namespace net {
15
16 class CookieStore;
17 class FraudulentCertificateReporter;
18 class HttpTransactionFactory;
19 class NetworkDelegate;
20 class SSLConfigService;
21 class TransportSecurityState;
22 class URLRequestJob;
23 class URLRequestThrottlerManager;
24
25 // Implements a ProtocolHandler for HTTP.
26 class NET_EXPORT HttpProtocolHandler :
27 public URLRequestJobFactory::ProtocolHandler {
28 public:
29 HttpProtocolHandler(
30 HttpTransactionFactory* http_transaction_factory,
31 NetworkDelegate* network_delegate,
32 URLRequestThrottlerManager* throttler_manager,
33 const std::string& accept_language,
34 const std::string& accept_charset,
35 CookieStore* cookie_store,
36 FraudulentCertificateReporter* fraudulent_certificate_reporter,
37 SSLConfigService* ssl_config_service,
38 TransportSecurityState* transport_security_state);
39
40 virtual URLRequestJob* MaybeCreateJob(URLRequest* request) const OVERRIDE;
41
42 private:
43 HttpTransactionFactory* http_transaction_factory_;
44 NetworkDelegate* network_delegate_;
45 URLRequestThrottlerManager* throttler_manager_;
46 const std::string accept_language_;
47 const std::string accept_charset_;
48 CookieStore* cookie_store_;
49 FraudulentCertificateReporter* fraudulent_certificate_reporter_;
50 SSLConfigService* ssl_config_service_;
51 TransportSecurityState* transport_security_state_;
52
53 DISALLOW_COPY_AND_ASSIGN(HttpProtocolHandler);
54 };
55
56 } // namespace net
57
58 #endif // NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698