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_CRYPTO_HANDSHAKE_MESSAGE_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ |
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <cstdint> | 11 #include <cstdint> |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/quic/quic_protocol.h" | 18 #include "net/quic/core/quic_protocol.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 // An intermediate format of a handshake message that's convenient for a | 22 // An intermediate format of a handshake message that's convenient for a |
23 // CryptoFramer to serialize from or parse into. | 23 // CryptoFramer to serialize from or parse into. |
24 class NET_EXPORT_PRIVATE CryptoHandshakeMessage { | 24 class NET_EXPORT_PRIVATE CryptoHandshakeMessage { |
25 public: | 25 public: |
26 CryptoHandshakeMessage(); | 26 CryptoHandshakeMessage(); |
27 CryptoHandshakeMessage(const CryptoHandshakeMessage& other); | 27 CryptoHandshakeMessage(const CryptoHandshakeMessage& other); |
28 CryptoHandshakeMessage(CryptoHandshakeMessage&& other); | 28 CryptoHandshakeMessage(CryptoHandshakeMessage&& other); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 size_t minimum_size_; | 130 size_t minimum_size_; |
131 | 131 |
132 // The serialized form of the handshake message. This member is constructed | 132 // The serialized form of the handshake message. This member is constructed |
133 // lasily. | 133 // lasily. |
134 mutable std::unique_ptr<QuicData> serialized_; | 134 mutable std::unique_ptr<QuicData> serialized_; |
135 }; | 135 }; |
136 | 136 |
137 } // namespace net | 137 } // namespace net |
138 | 138 |
139 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ | 139 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ |
OLD | NEW |