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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
15 #include "net/quic/crypto/crypto_handshake.h" | 15 #include "net/quic/crypto/crypto_handshake.h" |
16 #include "net/quic/crypto/crypto_protocol.h" | 16 #include "net/quic/crypto/crypto_protocol.h" |
17 #include "net/quic/quic_protocol.h" | 17 #include "net/quic/quic_protocol.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 class CryptoFramer; | 21 class CryptoFramer; |
22 class QuicDataReader; | 22 class QuicDataReader; |
23 class QuicData; | 23 class QuicData; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Length of the data associated with each tag in the message currently | 108 // Length of the data associated with each tag in the message currently |
109 // being parsed. | 109 // being parsed. |
110 std::map<CryptoTag, size_t> tag_length_map_; | 110 std::map<CryptoTag, size_t> tag_length_map_; |
111 // Cumulative length of all values in the message currently being parsed. | 111 // Cumulative length of all values in the message currently being parsed. |
112 size_t values_len_; | 112 size_t values_len_; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace net | 115 } // namespace net |
116 | 116 |
117 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ | 117 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ |
OLD | NEW |