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_server_stream.h" | 5 #include "net/quic/quic_crypto_server_stream.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "crypto/secure_hash.h" | 8 #include "crypto/secure_hash.h" |
9 #include "net/quic/crypto/cached_network_parameters.h" | 9 #include "net/quic/crypto/cached_network_parameters.h" |
10 #include "net/quic/crypto/crypto_protocol.h" | 10 #include "net/quic/crypto/crypto_protocol.h" |
11 #include "net/quic/crypto/crypto_utils.h" | 11 #include "net/quic/crypto/crypto_utils.h" |
12 #include "net/quic/crypto/quic_crypto_server_config.h" | 12 #include "net/quic/crypto/quic_crypto_server_config.h" |
13 #include "net/quic/quic_config.h" | 13 #include "net/quic/quic_config.h" |
14 #include "net/quic/quic_protocol.h" | 14 #include "net/quic/quic_protocol.h" |
15 #include "net/quic/quic_session.h" | 15 #include "net/quic/quic_session.h" |
16 | 16 |
17 using std::string; | 17 using std::string; |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 void ServerHelloNotifier::OnAckNotification( | 21 void ServerHelloNotifier::OnAckNotification( |
22 int num_original_packets, | |
23 int num_original_bytes, | |
24 int num_retransmitted_packets, | 22 int num_retransmitted_packets, |
25 int num_retransmitted_bytes, | 23 int num_retransmitted_bytes, |
26 QuicTime::Delta delta_largest_observed) { | 24 QuicTime::Delta delta_largest_observed) { |
27 server_stream_->OnServerHelloAcked(); | 25 server_stream_->OnServerHelloAcked(); |
28 } | 26 } |
29 | 27 |
30 QuicCryptoServerStream::QuicCryptoServerStream( | 28 QuicCryptoServerStream::QuicCryptoServerStream( |
31 const QuicCryptoServerConfig& crypto_config, | 29 const QuicCryptoServerConfig& crypto_config, |
32 QuicSession* session) | 30 QuicSession* session) |
33 : QuicCryptoStream(session), | 31 : QuicCryptoStream(session), |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 250 |
253 void QuicCryptoServerStream::ValidateCallback::RunImpl( | 251 void QuicCryptoServerStream::ValidateCallback::RunImpl( |
254 const CryptoHandshakeMessage& client_hello, | 252 const CryptoHandshakeMessage& client_hello, |
255 const Result& result) { | 253 const Result& result) { |
256 if (parent_ != nullptr) { | 254 if (parent_ != nullptr) { |
257 parent_->FinishProcessingHandshakeMessage(client_hello, result); | 255 parent_->FinishProcessingHandshakeMessage(client_hello, result); |
258 } | 256 } |
259 } | 257 } |
260 | 258 |
261 } // namespace net | 259 } // namespace net |
OLD | NEW |