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

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

Issue 25977005: [SPDY] Do not advertise SPDY/2 by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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_server_properties_impl_unittest.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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 static bool force_spdy_always() { return force_spdy_always_; } 258 static bool force_spdy_always() { return force_spdy_always_; }
259 259
260 // Add a URL to exclude from forced SPDY. 260 // Add a URL to exclude from forced SPDY.
261 static void add_forced_spdy_exclusion(const std::string& value); 261 static void add_forced_spdy_exclusion(const std::string& value);
262 // Check if a HostPortPair is excluded from using spdy. 262 // Check if a HostPortPair is excluded from using spdy.
263 static bool HasSpdyExclusion(const HostPortPair& endpoint); 263 static bool HasSpdyExclusion(const HostPortPair& endpoint);
264 264
265 // Sets http/1.1 as the only protocol supported via NPN or Alternate-Protocol. 265 // Sets http/1.1 as the only protocol supported via NPN or Alternate-Protocol.
266 static void EnableNpnHttpOnly(); 266 static void EnableNpnHttpOnly();
267 267
268 // Sets http/1.1, quic and spdy/2 (the default spdy protocol) as the protocols 268 // Sets http/1.1, quic, and spdy/3 as the protocols supported via
269 // supported via NPN or Alternate-Protocol. 269 // NPN or Alternate-Protocol.
270 static void EnableNpnSpdy();
271
272 // Sets http/1.1, quic, spdy/2, and spdy/3 as the protocols supported via NPN
273 // or Alternate-Protocol.
274 static void EnableNpnSpdy3(); 270 static void EnableNpnSpdy3();
275 271
276 // Sets http/1.1, quic, spdy/2, spdy/3, and spdy/3.1 as the protocols 272 // Sets http/1.1, quic, spdy/3, and spdy/3.1 as the protocols
277 // supported via NPN or Alternate-Protocol. 273 // supported via NPN or Alternate-Protocol.
278 static void EnableNpnSpdy31(); 274 static void EnableNpnSpdy31();
279 275
280 // Sets http/1.1, quic, spdy/2, spdy/3, spdy/3.1, and spdy/4a2 as 276 // Sets http/1.1, quic, spdy/2, spdy/3, and spdy/3.1 as the
281 // the protocols supported via NPN or Alternate-Protocol. 277 // protocols supported via NPN or Alternate-Protocol.
278 static void EnableNpnSpdy31WithSpdy2();
279
280 // Sets http/1.1, quic, spdy/3, spdy/3.1, and spdy/4a2 as the
281 // protocols supported via NPN or Alternate-Protocol.
282 static void EnableNpnSpdy4a2(); 282 static void EnableNpnSpdy4a2();
283 283
284 // Sets http/1.1, quic, spdy/2, spdy/3, spdy/3.1, spdy/4a2, and 284 // Sets http/1.1, quic, spdy/3, spdy/3.1, spdy/4a2, and http/2 draft
285 // http/2 draft 04 as the protocols supported via NPN or 285 // 04 as the protocols supported via NPN or Alternate-Protocol.
286 // Alternate-Protocol.
287 static void EnableNpnHttp2Draft04(); 286 static void EnableNpnHttp2Draft04();
288 287
289 // Sets the protocols supported by NPN (next protocol negotiation) during the 288 // Sets the protocols supported by NPN (next protocol negotiation) during the
290 // SSL handshake as well as by HTTP Alternate-Protocol. 289 // SSL handshake as well as by HTTP Alternate-Protocol.
291 static void SetNextProtos(const std::vector<NextProto>& value); 290 static void SetNextProtos(const std::vector<NextProto>& value);
292 static bool has_next_protos() { return next_protos_ != NULL; } 291 static bool has_next_protos() { return next_protos_ != NULL; }
293 static const std::vector<std::string>& next_protos() { 292 static const std::vector<std::string>& next_protos() {
294 return *next_protos_; 293 return *next_protos_;
295 } 294 }
296 295
(...skipping 13 matching lines...) Expand all
310 static bool force_spdy_over_ssl_; 309 static bool force_spdy_over_ssl_;
311 static bool force_spdy_always_; 310 static bool force_spdy_always_;
312 static std::list<HostPortPair>* forced_spdy_exclusions_; 311 static std::list<HostPortPair>* forced_spdy_exclusions_;
313 312
314 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 313 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
315 }; 314 };
316 315
317 } // namespace net 316 } // namespace net
318 317
319 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 318 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698