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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/quic/crypto/crypto_handshake.h" | 16 #include "net/quic/crypto/crypto_handshake_message.h" |
17 #include "net/quic/crypto/crypto_protocol.h" | |
18 #include "net/quic/quic_protocol.h" | 17 #include "net/quic/quic_protocol.h" |
19 | 18 |
20 namespace net { | 19 namespace net { |
21 | 20 |
22 class CryptoFramer; | 21 class CryptoFramer; |
23 class QuicData; | 22 class QuicData; |
24 class QuicDataReader; | 23 class QuicDataReader; |
25 class QuicDataWriter; | 24 class QuicDataWriter; |
26 | 25 |
27 class NET_EXPORT_PRIVATE CryptoFramerVisitorInterface { | 26 class NET_EXPORT_PRIVATE CryptoFramerVisitorInterface { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // tags_and_lengths_ contains the tags that are currently being parsed and | 106 // tags_and_lengths_ contains the tags that are currently being parsed and |
108 // their lengths. | 107 // their lengths. |
109 std::vector<std::pair<QuicTag, size_t> > tags_and_lengths_; | 108 std::vector<std::pair<QuicTag, size_t> > tags_and_lengths_; |
110 // Cumulative length of all values in the message currently being parsed. | 109 // Cumulative length of all values in the message currently being parsed. |
111 size_t values_len_; | 110 size_t values_len_; |
112 }; | 111 }; |
113 | 112 |
114 } // namespace net | 113 } // namespace net |
115 | 114 |
116 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ | 115 #endif // NET_QUIC_CRYPTO_CRYPTO_FRAMER_H_ |
OLD | NEW |