| 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_CORE_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ | 5 #ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ |
| 6 #define NET_QUIC_CORE_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ | 6 #define NET_QUIC_CORE_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" | |
| 18 #include "net/quic/core/quic_packets.h" | 17 #include "net/quic/core/quic_packets.h" |
| 18 #include "net/quic/platform/api/quic_export.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 QUIC_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); |
| 29 ~CryptoHandshakeMessage(); | 29 ~CryptoHandshakeMessage(); |
| 30 | 30 |
| 31 CryptoHandshakeMessage& operator=(const CryptoHandshakeMessage& other); | 31 CryptoHandshakeMessage& operator=(const CryptoHandshakeMessage& other); |
| 32 CryptoHandshakeMessage& operator=(CryptoHandshakeMessage&& other); | 32 CryptoHandshakeMessage& operator=(CryptoHandshakeMessage&& other); |
| 33 | 33 |
| 34 // Clears state. | 34 // Clears state. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 size_t minimum_size_; | 132 size_t minimum_size_; |
| 133 | 133 |
| 134 // The serialized form of the handshake message. This member is constructed | 134 // The serialized form of the handshake message. This member is constructed |
| 135 // lasily. | 135 // lasily. |
| 136 mutable std::unique_ptr<QuicData> serialized_; | 136 mutable std::unique_ptr<QuicData> serialized_; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace net | 139 } // namespace net |
| 140 | 140 |
| 141 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ | 141 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_HANDSHAKE_MESSAGE_H_ |
| OLD | NEW |