| OLD | NEW |
| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 it != tag_value_map_.end(); ++it) { | 232 it != tag_value_map_.end(); ++it) { |
| 233 ret += string(2 * indent, ' ') + QuicUtils::TagToString(it->first) + ": "; | 233 ret += string(2 * indent, ' ') + QuicUtils::TagToString(it->first) + ": "; |
| 234 | 234 |
| 235 bool done = false; | 235 bool done = false; |
| 236 switch (it->first) { | 236 switch (it->first) { |
| 237 case kICSL: | 237 case kICSL: |
| 238 case kCFCW: | 238 case kCFCW: |
| 239 case kSFCW: | 239 case kSFCW: |
| 240 case kIRTT: | 240 case kIRTT: |
| 241 case kMSPC: | 241 case kMSPC: |
| 242 case kSRBF: |
| 242 case kSWND: | 243 case kSWND: |
| 243 // uint32 value | 244 // uint32 value |
| 244 if (it->second.size() == 4) { | 245 if (it->second.size() == 4) { |
| 245 uint32 value; | 246 uint32 value; |
| 246 memcpy(&value, it->second.data(), sizeof(value)); | 247 memcpy(&value, it->second.data(), sizeof(value)); |
| 247 ret += base::UintToString(value); | 248 ret += base::UintToString(value); |
| 248 done = true; | 249 done = true; |
| 249 } | 250 } |
| 250 break; | 251 break; |
| 251 case kKEXS: | 252 case kKEXS: |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 ret += "0x" + base::HexEncode(it->second.data(), it->second.size()); | 309 ret += "0x" + base::HexEncode(it->second.data(), it->second.size()); |
| 309 } | 310 } |
| 310 ret += "\n"; | 311 ret += "\n"; |
| 311 } | 312 } |
| 312 --indent; | 313 --indent; |
| 313 ret += string(2 * indent, ' ') + ">"; | 314 ret += string(2 * indent, ' ') + ">"; |
| 314 return ret; | 315 return ret; |
| 315 } | 316 } |
| 316 | 317 |
| 317 } // namespace net | 318 } // namespace net |
| OLD | NEW |