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

Side by Side Diff: net/http/http_stream_factory.h

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 2 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
« no previous file with comments | « net/http/http_stream.h ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HTTP_HTTP_STREAM_FACTORY_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/load_states.h" 15 #include "net/base/load_states.h"
16 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace net { 20 namespace net {
21 21
22 class BoundNetLog; 22 class BoundNetLog;
23 class HostMappingRules; 23 class HostMappingRules;
24 class HostPortPair; 24 class HostPortPair;
25 class HttpAuthController; 25 class HttpAuthController;
26 class HttpNetworkSession; 26 class HttpNetworkSession;
27 class HttpPipelinedHost;
27 class HttpResponseInfo; 28 class HttpResponseInfo;
28 class HttpServerProperties; 29 class HttpServerProperties;
29 class HttpStream; 30 class HttpStream;
30 class ProxyInfo; 31 class ProxyInfo;
31 class SSLCertRequestInfo; 32 class SSLCertRequestInfo;
32 class SSLInfo; 33 class SSLInfo;
33 class X509Certificate; 34 class X509Certificate;
34 struct HttpRequestInfo; 35 struct HttpRequestInfo;
35 struct SSLConfig; 36 struct SSLConfig;
36 37
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // errors. This is for testing. 233 // errors. This is for testing.
233 static void set_ignore_certificate_errors(bool value) { 234 static void set_ignore_certificate_errors(bool value) {
234 ignore_certificate_errors_ = value; 235 ignore_certificate_errors_ = value;
235 } 236 }
236 static bool ignore_certificate_errors() { 237 static bool ignore_certificate_errors() {
237 return ignore_certificate_errors_; 238 return ignore_certificate_errors_;
238 } 239 }
239 240
240 static void SetHostMappingRules(const std::string& rules); 241 static void SetHostMappingRules(const std::string& rules);
241 242
243 static void set_http_pipelining_enabled(bool value) {
244 http_pipelining_enabled_ = value;
245 }
246 static bool http_pipelining_enabled() { return http_pipelining_enabled_; }
247
242 protected: 248 protected:
243 HttpStreamFactory(); 249 HttpStreamFactory();
244 250
245 private: 251 private:
246 static const HostMappingRules& host_mapping_rules(); 252 static const HostMappingRules& host_mapping_rules();
247 253
248 static const HostMappingRules* host_mapping_rules_; 254 static const HostMappingRules* host_mapping_rules_;
249 static std::vector<std::string>* next_protos_; 255 static std::vector<std::string>* next_protos_;
250 static bool spdy_enabled_; 256 static bool spdy_enabled_;
251 static bool use_alternate_protocols_; 257 static bool use_alternate_protocols_;
252 static bool force_spdy_over_ssl_; 258 static bool force_spdy_over_ssl_;
253 static bool force_spdy_always_; 259 static bool force_spdy_always_;
254 static std::list<HostPortPair>* forced_spdy_exclusions_; 260 static std::list<HostPortPair>* forced_spdy_exclusions_;
255 static bool ignore_certificate_errors_; 261 static bool ignore_certificate_errors_;
262 static bool http_pipelining_enabled_;
256 263
257 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 264 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
258 }; 265 };
259 266
260 } // namespace net 267 } // namespace net
261 268
262 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 269 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_stream.h ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698