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

Side by Side Diff: net/quic/quic_chromium_client_session.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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/quic_chromium_client_session.h ('k') | net/quic/quic_chromium_client_session_test.cc » ('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) 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/quic_chromium_client_session.h" 5 #include "net/quic/quic_chromium_client_session.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 return false; 463 return false;
464 } 464 }
465 465
466 ssl_info->cert_status = cert_verify_result_->cert_status; 466 ssl_info->cert_status = cert_verify_result_->cert_status;
467 ssl_info->cert = cert_verify_result_->verified_cert; 467 ssl_info->cert = cert_verify_result_->verified_cert;
468 468
469 // TODO(wtc): Define QUIC "cipher suites". 469 // TODO(wtc): Define QUIC "cipher suites".
470 // Report the TLS cipher suite that most closely resembles the crypto 470 // Report the TLS cipher suite that most closely resembles the crypto
471 // parameters of the QUIC connection. 471 // parameters of the QUIC connection.
472 QuicTag aead = crypto_stream_->crypto_negotiated_params().aead; 472 QuicTag aead = crypto_stream_->crypto_negotiated_params().aead;
473 uint16 cipher_suite; 473 uint16_t cipher_suite;
474 int security_bits; 474 int security_bits;
475 switch (aead) { 475 switch (aead) {
476 case kAESG: 476 case kAESG:
477 cipher_suite = 0xc02f; // TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 477 cipher_suite = 0xc02f; // TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
478 security_bits = 128; 478 security_bits = 128;
479 break; 479 break;
480 case kCC12: 480 case kCC12:
481 cipher_suite = 0xcc13; // TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 481 cipher_suite = 0xcc13; // TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
482 security_bits = 256; 482 security_bits = 256;
483 break; 483 break;
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 return; 975 return;
976 976
977 // TODO(rch): re-enable this code once beta is cut. 977 // TODO(rch): re-enable this code once beta is cut.
978 // if (stream_factory_) 978 // if (stream_factory_)
979 // stream_factory_->OnSessionConnectTimeout(this); 979 // stream_factory_->OnSessionConnectTimeout(this);
980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); 980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED);
981 // DCHECK_EQ(0u, GetNumOpenOutgoingStreams()); 981 // DCHECK_EQ(0u, GetNumOpenOutgoingStreams());
982 } 982 }
983 983
984 } // namespace net 984 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | net/quic/quic_chromium_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698