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 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/quic/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Receives a notification when the server hello (SHLO) has been ACKed by the | 28 // Receives a notification when the server hello (SHLO) has been ACKed by the |
29 // peer. At this point we disable HANDSHAKE_MODE in the sent packet manager. | 29 // peer. At this point we disable HANDSHAKE_MODE in the sent packet manager. |
30 class NET_EXPORT_PRIVATE ServerHelloNotifier : public | 30 class NET_EXPORT_PRIVATE ServerHelloNotifier : public |
31 QuicAckNotifier::DelegateInterface { | 31 QuicAckNotifier::DelegateInterface { |
32 public: | 32 public: |
33 explicit ServerHelloNotifier(QuicCryptoServerStream* stream) | 33 explicit ServerHelloNotifier(QuicCryptoServerStream* stream) |
34 : server_stream_(stream) {} | 34 : server_stream_(stream) {} |
35 | 35 |
36 // QuicAckNotifier::DelegateInterface implementation | 36 // QuicAckNotifier::DelegateInterface implementation |
37 void OnAckNotification(int num_original_packets, | 37 void OnAckNotification(int num_retransmitted_packets, |
38 int num_original_bytes, | |
39 int num_retransmitted_packets, | |
40 int num_retransmitted_bytes, | 38 int num_retransmitted_bytes, |
41 QuicTime::Delta delta_largest_observed) override; | 39 QuicTime::Delta delta_largest_observed) override; |
42 | 40 |
43 private: | 41 private: |
44 ~ServerHelloNotifier() override {} | 42 ~ServerHelloNotifier() override {} |
45 | 43 |
46 QuicCryptoServerStream* server_stream_; | 44 QuicCryptoServerStream* server_stream_; |
47 | 45 |
48 DISALLOW_COPY_AND_ASSIGN(ServerHelloNotifier); | 46 DISALLOW_COPY_AND_ASSIGN(ServerHelloNotifier); |
49 }; | 47 }; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 142 |
145 // Contains any source address tokens which were present in the CHLO. | 143 // Contains any source address tokens which were present in the CHLO. |
146 SourceAddressTokens previous_source_address_tokens_; | 144 SourceAddressTokens previous_source_address_tokens_; |
147 | 145 |
148 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 146 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
149 }; | 147 }; |
150 | 148 |
151 } // namespace net | 149 } // namespace net |
152 | 150 |
153 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 151 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |