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

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: Rebase 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
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 249 // Sets http/1.1, spdy/2, spdy/3, spdy/3.1, and spdy/4a2 as the
250 // protocols supported via NPN. 250 // protocols supported via NPN.
251 static void EnableNpnSpdy4a1(); 251 static void EnableNpnSpdy4a2();
Ryan Hamilton 2013/05/15 18:32:48 Totally your cal. I'm happy for you to keep this
akalin 2013/05/15 18:50:00 Meh, I can always resurrect it from source control
252 252
253 // Sets the protocols supported by NPN (next protocol negotiation) during the 253 // Sets the protocols supported by NPN (next protocol negotiation) during the
254 // SSL handshake as well as by HTTP Alternate-Protocol. 254 // SSL handshake as well as by HTTP Alternate-Protocol.
255 static void SetNextProtos(const std::vector<std::string>& value); 255 static void SetNextProtos(const std::vector<std::string>& value);
256 static bool has_next_protos() { return next_protos_ != NULL; } 256 static bool has_next_protos() { return next_protos_ != NULL; }
257 static const std::vector<std::string>& next_protos() { 257 static const std::vector<std::string>& next_protos() {
258 return *next_protos_; 258 return *next_protos_;
259 } 259 }
260 260
261 protected: 261 protected:
262 HttpStreamFactory(); 262 HttpStreamFactory();
263 263
264 private: 264 private:
265 static std::vector<std::string>* next_protos_; 265 static std::vector<std::string>* next_protos_;
266 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS]; 266 static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS];
267 static bool spdy_enabled_; 267 static bool spdy_enabled_;
268 static bool use_alternate_protocols_; 268 static bool use_alternate_protocols_;
269 static bool force_spdy_over_ssl_; 269 static bool force_spdy_over_ssl_;
270 static bool force_spdy_always_; 270 static bool force_spdy_always_;
271 static std::list<HostPortPair>* forced_spdy_exclusions_; 271 static std::list<HostPortPair>* forced_spdy_exclusions_;
272 272
273 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 273 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
274 }; 274 };
275 275
276 } // namespace net 276 } // namespace net
277 277
278 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 278 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698