Chromium Code Reviews| Index: net/base/next_proto.h |
| diff --git a/net/base/next_proto.h b/net/base/next_proto.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aa2bc2c934fdaad113dce7fc4291a9facb84e3b3 |
| --- /dev/null |
| +++ b/net/base/next_proto.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_BASE_NEXT_PROTO_H_ |
|
wtc
2012/03/30 20:53:51
Please move this header to the net/socket director
Ryan Hamilton
2012/03/30 21:12:13
Done.
|
| +#define NET_BASE_NEXT_PROTO_H_ |
| +#pragma once |
| + |
| +namespace net { |
| + |
| +// Next Protocol Negotiation (NPN), if successful, results in agreement on an |
| +// application-level string that specifies the application level protocol to |
| +// use over the TLS connection. NextProto enumerates the application level |
| +// protocols that we recognise. |
| +enum NextProto { |
| + kProtoUnknown = 0, |
| + kProtoHTTP11 = 1, |
| + kProtoSPDY1 = 2, |
| + kProtoSPDY2 = 3, |
| + kProtoSPDY21 = 4, |
| + kProtoSPDY3 = 5, |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_BASE_NEXT_PROTO_H_ |