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

Unified Diff: net/http/http_stream_factory.h

Issue 9516009: SPDY - disable spdy/2.1 (flow control) by default (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory.h
===================================================================
--- net/http/http_stream_factory.h (revision 124201)
+++ net/http/http_stream_factory.h (working copy)
@@ -15,6 +15,7 @@
#include "net/base/completion_callback.h"
#include "net/base/load_states.h"
#include "net/base/net_export.h"
+#include "net/http/http_server_properties.h"
#include "net/socket/ssl_client_socket.h"
class GURL;
@@ -229,12 +230,9 @@
// Check if a HostPortPair is excluded from using spdy.
static bool HasSpdyExclusion(const HostPortPair& endpoint);
- // Sets the next protocol negotiation value used during the SSL handshake.
- static void set_next_protos(const std::vector<std::string>& value) {
- if (!next_protos_)
- next_protos_ = new std::vector<std::string>;
- *next_protos_ = value;
- }
+ // Sets the protocols supported by NPN (next protocol negotiation) during the
+ // SSL handshake as well as by HTTP Alternate-Protocol.
+ static void SetNextProtos(const std::vector<std::string>& value);
static bool has_next_protos() { return next_protos_ != NULL; }
static const std::vector<std::string>& next_protos() {
return *next_protos_;
@@ -274,6 +272,7 @@
static const HostMappingRules* host_mapping_rules_;
static std::vector<std::string>* next_protos_;
+ static bool enabled_protocols_[NUM_ALTERNATE_PROTOCOLS];
static bool spdy_enabled_;
static bool use_alternate_protocols_;
static bool force_spdy_over_ssl_;
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698