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

Side by Side Diff: net/quic/crypto/crypto_handshake_message.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_handshake_message.h" 5 #include "net/quic/crypto/crypto_handshake_message.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "net/quic/crypto/crypto_framer.h" 9 #include "net/quic/crypto/crypto_framer.h"
10 #include "net/quic/crypto/crypto_protocol.h" 10 #include "net/quic/crypto/crypto_protocol.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 it != tag_value_map_.end(); ++it) { 237 it != tag_value_map_.end(); ++it) {
238 ret += string(2 * indent, ' ') + QuicUtils::TagToString(it->first) + ": "; 238 ret += string(2 * indent, ' ') + QuicUtils::TagToString(it->first) + ": ";
239 239
240 bool done = false; 240 bool done = false;
241 switch (it->first) { 241 switch (it->first) {
242 case kICSL: 242 case kICSL:
243 case kIFCW: 243 case kIFCW:
244 case kCFCW: 244 case kCFCW:
245 case kSFCW: 245 case kSFCW:
246 case kIRTT: 246 case kIRTT:
247 case kKATO:
248 case kMSPC: 247 case kMSPC:
249 case kSWND: 248 case kSWND:
250 // uint32 value 249 // uint32 value
251 if (it->second.size() == 4) { 250 if (it->second.size() == 4) {
252 uint32 value; 251 uint32 value;
253 memcpy(&value, it->second.data(), sizeof(value)); 252 memcpy(&value, it->second.data(), sizeof(value));
254 ret += base::UintToString(value); 253 ret += base::UintToString(value);
255 done = true; 254 done = true;
256 } 255 }
257 break; 256 break;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 ret += "0x" + base::HexEncode(it->second.data(), it->second.size()); 314 ret += "0x" + base::HexEncode(it->second.data(), it->second.size());
316 } 315 }
317 ret += "\n"; 316 ret += "\n";
318 } 317 }
319 --indent; 318 --indent;
320 ret += string(2 * indent, ' ') + ">"; 319 ret += string(2 * indent, ' ') + ">";
321 return ret; 320 return ret;
322 } 321 }
323 322
324 } // namespace net 323 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698