OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ | 5 #ifndef NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ |
6 #define NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ | 6 #define NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string_piece.h" | 10 #include "base/strings/string_piece.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/quic/crypto/crypto_protocol.h" | 12 #include "net/quic/crypto/crypto_protocol.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 // KeyExchange is an abstract class that provides an interface to a | 16 // KeyExchange is an abstract class that provides an interface to a |
17 // key-exchange primitive. | 17 // key-exchange primitive. |
18 class NET_EXPORT_PRIVATE KeyExchange { | 18 class NET_EXPORT_PRIVATE KeyExchange { |
19 public: | 19 public: |
20 virtual ~KeyExchange() { } | 20 virtual ~KeyExchange() { } |
(...skipping 10 matching lines...) Expand all Loading... |
31 // KeyExchange exists. | 31 // KeyExchange exists. |
32 virtual base::StringPiece public_value() const = 0; | 32 virtual base::StringPiece public_value() const = 0; |
33 | 33 |
34 // tag returns the tag value that identifies this key exchange function. | 34 // tag returns the tag value that identifies this key exchange function. |
35 virtual CryptoTag tag() const = 0; | 35 virtual CryptoTag tag() const = 0; |
36 }; | 36 }; |
37 | 37 |
38 } // namespace net | 38 } // namespace net |
39 | 39 |
40 #endif // NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ | 40 #endif // NET_QUIC_CRYPTO_KEY_EXCHANGE_H_ |
OLD | NEW |