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/core/crypto/crypto_framer.h" | 5 #include "net/quic/core/crypto/crypto_framer.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | |
8 #include "net/quic/core/crypto/crypto_protocol.h" | 7 #include "net/quic/core/crypto/crypto_protocol.h" |
9 #include "net/quic/core/quic_data_reader.h" | 8 #include "net/quic/core/quic_data_reader.h" |
10 #include "net/quic/core/quic_data_writer.h" | 9 #include "net/quic/core/quic_data_writer.h" |
11 #include "net/quic/core/quic_packets.h" | 10 #include "net/quic/core/quic_packets.h" |
12 #include "net/quic/platform/api/quic_str_cat.h" | 11 #include "net/quic/platform/api/quic_str_cat.h" |
13 | 12 |
14 using base::StringPiece; | 13 using base::StringPiece; |
15 | 14 |
16 namespace net { | 15 namespace net { |
17 | 16 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 283 } |
285 *end_offset += pad_length; | 284 *end_offset += pad_length; |
286 if (!writer->WriteUInt32(*end_offset)) { | 285 if (!writer->WriteUInt32(*end_offset)) { |
287 DCHECK(false) << "Failed to write end offset."; | 286 DCHECK(false) << "Failed to write end offset."; |
288 return false; | 287 return false; |
289 } | 288 } |
290 return true; | 289 return true; |
291 } | 290 } |
292 | 291 |
293 } // namespace net | 292 } // namespace net |
OLD | NEW |