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

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
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"
Ryan Hamilton 2012/03/02 16:46:53 Is this import needed?
ramant (doing other things) 2012/03/02 18:40:41 It is needed because of NUM_ALTERNATE_PROTOCOLS.
#include "net/socket/ssl_client_socket.h"
class GURL;
@@ -230,11 +231,7 @@
static bool HasSpdyExclusion(const HostPortPair& endpoint);
// Sets the next protocol negotiation value used during the SSL handshake.
Ryan Hamilton 2012/03/02 16:46:53 Please update comment. I believe this vector is us
ramant (doing other things) 2012/03/02 18:40:41 Done.
- static void set_next_protos(const std::vector<std::string>& value) {
- if (!next_protos_)
- next_protos_ = new std::vector<std::string>;
- *next_protos_ = value;
- }
+ 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 +271,7 @@
static const HostMappingRules* host_mapping_rules_;
static std::vector<std::string>* next_protos_;
+ static bool supported_protocols_[NUM_ALTERNATE_PROTOCOLS];
Ryan Hamilton 2012/03/02 16:46:53 nit: I think I would call this enabled_protocols_,
ramant (doing other things) 2012/03/02 18:40:41 Done.
static bool spdy_enabled_;
static bool use_alternate_protocols_;
static bool force_spdy_over_ssl_;

Powered by Google App Engine
This is Rietveld 408576698