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

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

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change pool API 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
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 #include "net/http/http_stream_factory.h" 5 #include "net/http/http_stream_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/string_split.h" 9 #include "base/string_split.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 12 matching lines...) Expand all
23 // static 23 // static
24 bool HttpStreamFactory::use_alternate_protocols_ = false; 24 bool HttpStreamFactory::use_alternate_protocols_ = false;
25 // static 25 // static
26 bool HttpStreamFactory::force_spdy_over_ssl_ = true; 26 bool HttpStreamFactory::force_spdy_over_ssl_ = true;
27 // static 27 // static
28 bool HttpStreamFactory::force_spdy_always_ = false; 28 bool HttpStreamFactory::force_spdy_always_ = false;
29 // static 29 // static
30 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; 30 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL;
31 // static 31 // static
32 bool HttpStreamFactory::ignore_certificate_errors_ = false; 32 bool HttpStreamFactory::ignore_certificate_errors_ = false;
33 // static
34 bool HttpStreamFactory::http_pipelining_enabled_ = false;
33 35
34 HttpStreamFactory::~HttpStreamFactory() {} 36 HttpStreamFactory::~HttpStreamFactory() {}
35 37
36 void HttpStreamFactory::ProcessAlternateProtocol( 38 void HttpStreamFactory::ProcessAlternateProtocol(
37 HttpAlternateProtocols* alternate_protocols, 39 HttpAlternateProtocols* alternate_protocols,
38 const std::string& alternate_protocol_str, 40 const std::string& alternate_protocol_str,
39 const HostPortPair& http_host_port_pair) { 41 const HostPortPair& http_host_port_pair) {
40 std::vector<std::string> port_protocol_vector; 42 std::vector<std::string> port_protocol_vector;
41 base::SplitString(alternate_protocol_str, ':', &port_protocol_vector); 43 base::SplitString(alternate_protocol_str, ':', &port_protocol_vector);
42 if (port_protocol_vector.size() != 2) { 44 if (port_protocol_vector.size() != 2) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 HttpStreamFactory::HttpStreamFactory() {} 133 HttpStreamFactory::HttpStreamFactory() {}
132 134
133 // static 135 // static
134 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { 136 const HostMappingRules& HttpStreamFactory::host_mapping_rules() {
135 if (!host_mapping_rules_) 137 if (!host_mapping_rules_)
136 host_mapping_rules_ = new HostMappingRules; 138 host_mapping_rules_ = new HostMappingRules;
137 return *host_mapping_rules_; 139 return *host_mapping_rules_;
138 } 140 }
139 141
140 } // namespace net 142 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698