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

Side by Side Diff: net/socket/next_proto.cc

Issue 1097773003: Clean up NPN/ALPN-related SSLClientSocket bits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "net/socket/next_proto.h" 5 #include "net/socket/next_proto.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 NextProtoVector NextProtosDefaults() { 9 NextProtoVector NextProtosDefaults() {
10 NextProtoVector next_protos; 10 NextProtoVector next_protos;
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 NextProtoVector NextProtosSpdy31() { 32 NextProtoVector NextProtosSpdy31() {
33 NextProtoVector next_protos; 33 NextProtoVector next_protos;
34 next_protos.push_back(kProtoHTTP11); 34 next_protos.push_back(kProtoHTTP11);
35 next_protos.push_back(kProtoQUIC1SPDY3); 35 next_protos.push_back(kProtoQUIC1SPDY3);
36 next_protos.push_back(kProtoSPDY31); 36 next_protos.push_back(kProtoSPDY31);
37 return next_protos; 37 return next_protos;
38 } 38 }
39 39
40 bool NextProtoIsSPDY(NextProto next_proto) {
41 return next_proto >= kProtoSPDYMinimumVersion &&
42 next_proto <= kProtoSPDYMaximumVersion;
43 }
44
40 } // namespace net 45 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698