Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Side by Side Diff: net/quic/core/crypto/crypto_framer.cc

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: net/tools/quic/quic_packet_printer_bin.cc Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/core/crypto/crypto_handshake_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698