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

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

Issue 12388099: [SPDY] Add flag to turn on SPDY/3.1 (with per-session flow control) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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_server_properties.cc ('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) 2012 The Chromium Authors. All rights reserved. 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 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>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Sets http/1.1 as the only protocol supported via NPN. 232 // Sets http/1.1 as the only protocol supported via NPN.
233 static void EnableNpnHttpOnly(); 233 static void EnableNpnHttpOnly();
234 234
235 // Sets http/1.1 and spdy/2 (the default spdy protocol) as the protocols 235 // Sets http/1.1 and spdy/2 (the default spdy protocol) as the protocols
236 // supported via NPN. 236 // supported via NPN.
237 static void EnableNpnSpdy(); 237 static void EnableNpnSpdy();
238 238
239 // Sets http/1.1, spdy/2, and spdy/3 as the protocols supported via NPN. 239 // Sets http/1.1, spdy/2, and spdy/3 as the protocols supported via NPN.
240 static void EnableNpnSpdy3(); 240 static void EnableNpnSpdy3();
241 241
242 // Sets http/1.1, spdy/2, spdy/3, and spdy/3.1 as the protocols
243 // supported via NPN.
244 static void EnableNpnSpdy31();
245
242 // Sets the protocols supported by NPN (next protocol negotiation) during the 246 // Sets the protocols supported by NPN (next protocol negotiation) during the
243 // SSL handshake as well as by HTTP Alternate-Protocol. 247 // SSL handshake as well as by HTTP Alternate-Protocol.
244 static void SetNextProtos(const std::vector<std::string>& value); 248 static void SetNextProtos(const std::vector<std::string>& value);
245 static bool has_next_protos() { return next_protos_ != NULL; } 249 static bool has_next_protos() { return next_protos_ != NULL; }
246 static const std::vector<std::string>& next_protos() { 250 static const std::vector<std::string>& next_protos() {
247 return *next_protos_; 251 return *next_protos_;
248 } 252 }
249 253
250 protected: 254 protected:
251 HttpStreamFactory(); 255 HttpStreamFactory();
252 256
253 private: 257 private:
254 static std::vector<std::string>* next_protos_; 258 static std::vector<std::string>* next_protos_;
255 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS]; 259 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS];
256 static bool spdy_enabled_; 260 static bool spdy_enabled_;
257 static bool use_alternate_protocols_; 261 static bool use_alternate_protocols_;
258 static bool force_spdy_over_ssl_; 262 static bool force_spdy_over_ssl_;
259 static bool force_spdy_always_; 263 static bool force_spdy_always_;
260 static std::list<HostPortPair>* forced_spdy_exclusions_; 264 static std::list<HostPortPair>* forced_spdy_exclusions_;
261 265
262 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 266 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
263 }; 267 };
264 268
265 } // namespace net 269 } // namespace net
266 270
267 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 271 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698