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_crypto_client_stream.h" | 5 #include "net/quic/quic_crypto_client_stream.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.h" |
9 #include "net/quic/crypto/crypto_protocol.h" | 9 #include "net/quic/crypto/crypto_protocol.h" |
10 #include "net/quic/crypto/crypto_utils.h" | 10 #include "net/quic/crypto/crypto_utils.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 void QuicCryptoClientStream::CryptoConnect() { | 128 void QuicCryptoClientStream::CryptoConnect() { |
129 next_state_ = STATE_INITIALIZE; | 129 next_state_ = STATE_INITIALIZE; |
130 DoHandshakeLoop(nullptr); | 130 DoHandshakeLoop(nullptr); |
131 } | 131 } |
132 | 132 |
133 int QuicCryptoClientStream::num_sent_client_hellos() const { | 133 int QuicCryptoClientStream::num_sent_client_hellos() const { |
134 return num_client_hellos_; | 134 return num_client_hellos_; |
135 } | 135 } |
136 | 136 |
| 137 // Used in Chromium, but not in the server. |
137 bool QuicCryptoClientStream::WasChannelIDSent() const { | 138 bool QuicCryptoClientStream::WasChannelIDSent() const { |
138 return channel_id_sent_; | 139 return channel_id_sent_; |
139 } | 140 } |
140 | 141 |
141 bool QuicCryptoClientStream::WasChannelIDSourceCallbackRun() const { | 142 bool QuicCryptoClientStream::WasChannelIDSourceCallbackRun() const { |
142 return channel_id_source_callback_run_; | 143 return channel_id_source_callback_run_; |
143 } | 144 } |
144 | 145 |
145 void QuicCryptoClientStream::HandleServerConfigUpdateMessage( | 146 void QuicCryptoClientStream::HandleServerConfigUpdateMessage( |
146 const CryptoHandshakeMessage& server_config_update) { | 147 const CryptoHandshakeMessage& server_config_update) { |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 } | 656 } |
656 } | 657 } |
657 return false; | 658 return false; |
658 } | 659 } |
659 | 660 |
660 QuicClientSessionBase* QuicCryptoClientStream::client_session() { | 661 QuicClientSessionBase* QuicCryptoClientStream::client_session() { |
661 return reinterpret_cast<QuicClientSessionBase*>(session()); | 662 return reinterpret_cast<QuicClientSessionBase*>(session()); |
662 } | 663 } |
663 | 664 |
664 } // namespace net | 665 } // namespace net |
OLD | NEW |