| 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/quic_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 ssl_info->is_issued_by_known_root = | 500 ssl_info->is_issued_by_known_root = |
| 501 cert_verify_result_->is_issued_by_known_root; | 501 cert_verify_result_->is_issued_by_known_root; |
| 502 | 502 |
| 503 ssl_info->connection_status = ssl_connection_status; | 503 ssl_info->connection_status = ssl_connection_status; |
| 504 ssl_info->client_cert_sent = false; | 504 ssl_info->client_cert_sent = false; |
| 505 ssl_info->channel_id_sent = crypto_stream_->WasChannelIDSent(); | 505 ssl_info->channel_id_sent = crypto_stream_->WasChannelIDSent(); |
| 506 ssl_info->security_bits = security_bits; | 506 ssl_info->security_bits = security_bits; |
| 507 ssl_info->handshake_type = SSLInfo::HANDSHAKE_FULL; | 507 ssl_info->handshake_type = SSLInfo::HANDSHAKE_FULL; |
| 508 ssl_info->pinning_failure_log = pinning_failure_log_; | 508 ssl_info->pinning_failure_log = pinning_failure_log_; |
| 509 | 509 |
| 510 ssl_info->UpdateSignedCertificateTimestamps(*ct_verify_result_); | 510 ssl_info->UpdateCertificateTransparencyInfo(*ct_verify_result_); |
| 511 | 511 |
| 512 return true; | 512 return true; |
| 513 } | 513 } |
| 514 | 514 |
| 515 int QuicChromiumClientSession::CryptoConnect( | 515 int QuicChromiumClientSession::CryptoConnect( |
| 516 bool require_confirmation, | 516 bool require_confirmation, |
| 517 const CompletionCallback& callback) { | 517 const CompletionCallback& callback) { |
| 518 require_confirmation_ = require_confirmation; | 518 require_confirmation_ = require_confirmation; |
| 519 handshake_start_ = base::TimeTicks::Now(); | 519 handshake_start_ = base::TimeTicks::Now(); |
| 520 RecordHandshakeState(STATE_STARTED); | 520 RecordHandshakeState(STATE_STARTED); |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 const DatagramClientSocket* QuicChromiumClientSession::GetDefaultSocket() | 1019 const DatagramClientSocket* QuicChromiumClientSession::GetDefaultSocket() |
| 1020 const { | 1020 const { |
| 1021 DCHECK(sockets_.back().get() != nullptr); | 1021 DCHECK(sockets_.back().get() != nullptr); |
| 1022 // The most recently added socket is the currently active one. | 1022 // The most recently added socket is the currently active one. |
| 1023 return sockets_.back().get(); | 1023 return sockets_.back().get(); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 } // namespace net | 1026 } // namespace net |
| OLD | NEW |