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

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

Issue 14189003: [SPDY] Incorporate latest framing changes from HTTP2 into SPDY 4 as SPDY 4a2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // supported via NPN. 239 // supported via NPN.
240 static void EnableNpnSpdy(); 240 static void EnableNpnSpdy();
241 241
242 // Sets http/1.1, spdy/2, and spdy/3 as the protocols supported via NPN. 242 // Sets http/1.1, spdy/2, and spdy/3 as the protocols supported via NPN.
243 static void EnableNpnSpdy3(); 243 static void EnableNpnSpdy3();
244 244
245 // Sets http/1.1, spdy/2, spdy/3, and spdy/3.1 as the protocols 245 // Sets http/1.1, spdy/2, spdy/3, and spdy/3.1 as the protocols
246 // supported via NPN. 246 // supported via NPN.
247 static void EnableNpnSpdy31(); 247 static void EnableNpnSpdy31();
248 248
249 // Sets http/1.1, spdy/2, spdy/3, spdy/3.1, and spdy/4a1 as the
250 // protocols supported via NPN.
251 static void EnableNpnSpdy4a1();
252
253 // Sets the protocols supported by NPN (next protocol negotiation) during the 249 // Sets the protocols supported by NPN (next protocol negotiation) during the
254 // SSL handshake as well as by HTTP Alternate-Protocol. 250 // SSL handshake as well as by HTTP Alternate-Protocol.
255 static void SetNextProtos(const std::vector<std::string>& value); 251 static void SetNextProtos(const std::vector<std::string>& value);
256 static bool has_next_protos() { return next_protos_ != NULL; } 252 static bool has_next_protos() { return next_protos_ != NULL; }
257 static const std::vector<std::string>& next_protos() { 253 static const std::vector<std::string>& next_protos() {
258 return *next_protos_; 254 return *next_protos_;
259 } 255 }
260 256
261 protected: 257 protected:
262 HttpStreamFactory(); 258 HttpStreamFactory();
263 259
264 private: 260 private:
265 static std::vector<std::string>* next_protos_; 261 static std::vector<std::string>* next_protos_;
266 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS]; 262 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS];
267 static bool spdy_enabled_; 263 static bool spdy_enabled_;
268 static bool use_alternate_protocols_; 264 static bool use_alternate_protocols_;
269 static bool force_spdy_over_ssl_; 265 static bool force_spdy_over_ssl_;
270 static bool force_spdy_always_; 266 static bool force_spdy_always_;
271 static std::list<HostPortPair>* forced_spdy_exclusions_; 267 static std::list<HostPortPair>* forced_spdy_exclusions_;
272 268
273 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 269 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
274 }; 270 };
275 271
276 } // namespace net 272 } // namespace net
277 273
278 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 274 #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