| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FRAMER_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ |
| 6 #define NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Remaining unparsed data. | 96 // Remaining unparsed data. |
| 97 std::string buffer_; | 97 std::string buffer_; |
| 98 // Current state of the parsing. | 98 // Current state of the parsing. |
| 99 CryptoFramerState state_; | 99 CryptoFramerState state_; |
| 100 // The message currently being parsed. | 100 // The message currently being parsed. |
| 101 CryptoHandshakeMessage message_; | 101 CryptoHandshakeMessage message_; |
| 102 // Number of entires in the message currently being parsed. | 102 // Number of entires in the message currently being parsed. |
| 103 uint16 num_entries_; | 103 uint16 num_entries_; |
| 104 // tags_and_lengths_ contains the tags that are currently being parsed and | 104 // tags_and_lengths_ contains the tags that are currently being parsed and |
| 105 // their lengths. | 105 // their lengths. |
| 106 std::vector<std::pair<QuicTag, size_t> > tags_and_lengths_; | 106 std::vector<std::pair<QuicTag, size_t>> tags_and_lengths_; |
| 107 // Cumulative length of all values in the message currently being parsed. | 107 // Cumulative length of all values in the message currently being parsed. |
| 108 size_t values_len_; | 108 size_t values_len_; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace net | 111 } // namespace net |
| 112 | 112 |
| 113 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ | 113 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ |
| OLD | NEW |