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

Unified Diff: net/socket/ssl_client_socket.h

Issue 1575048: SPDY: Change Chrome code to support new NPN protocols. (Closed)
Patch Set: oops Created 10 years, 8 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket.h
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index f592a1bfd2cd22de6b5e981db9dd0165512031be..77537eaea72c9f1b8c1bbc36a4aa9f4b0042346b 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -39,7 +39,7 @@ class SSLClientSocket : public ClientSocket {
enum NextProto {
kProtoUnknown = 0,
kProtoHTTP11 = 1,
- kProtoSPDY = 2,
+ kProtoSPDY1 = 2,
};
// Gets the SSL connection information of the socket.
@@ -60,10 +60,10 @@ class SSLClientSocket : public ClientSocket {
virtual NextProtoStatus GetNextProto(std::string* proto) = 0;
static NextProto NextProtoFromString(const std::string& proto_string) {
- if (proto_string == "http1.1") {
+ if (proto_string == "http1.1" || proto_string == "http/1.1") {
return kProtoHTTP11;
- } else if (proto_string == "spdy") {
- return kProtoSPDY;
+ } else if (proto_string == "spdy" || proto_string == "spdy/1") {
+ return kProtoSPDY1;
} else {
return kProtoUnknown;
}
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698