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 #include "net/quic/crypto/crypto_framer.h" | 5 #include "net/quic/crypto/crypto_framer.h" |
6 | 6 |
| 7 #include "net/quic/crypto/crypto_handshake.h" |
7 #include "net/quic/quic_data_reader.h" | 8 #include "net/quic/quic_data_reader.h" |
8 #include "net/quic/quic_data_writer.h" | 9 #include "net/quic/quic_data_writer.h" |
9 #include "net/quic/quic_protocol.h" | |
10 | 10 |
11 using base::StringPiece; | 11 using base::StringPiece; |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const size_t kCryptoTagSize = sizeof(uint32); | 17 const size_t kCryptoTagSize = sizeof(uint32); |
18 const size_t kNumEntriesSize = sizeof(uint16); | 18 const size_t kNumEntriesSize = sizeof(uint16); |
19 const size_t kValueLenSize = sizeof(uint16); | 19 const size_t kValueLenSize = sizeof(uint16); |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 void CryptoFramer::Clear() { | 225 void CryptoFramer::Clear() { |
226 tag_value_map_.clear(); | 226 tag_value_map_.clear(); |
227 tag_length_map_.clear(); | 227 tag_length_map_.clear(); |
228 tags_.clear(); | 228 tags_.clear(); |
229 error_ = QUIC_NO_ERROR; | 229 error_ = QUIC_NO_ERROR; |
230 state_ = STATE_READING_TAG; | 230 state_ = STATE_READING_TAG; |
231 } | 231 } |
232 | 232 |
233 } // namespace net | 233 } // namespace net |
OLD | NEW |