| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // presented a ChannelID. Otherwise it returns false. | 65 // presented a ChannelID. Otherwise it returns false. |
| 66 bool GetBase64SHA256ClientChannelID(std::string* output) const; | 66 bool GetBase64SHA256ClientChannelID(std::string* output) const; |
| 67 | 67 |
| 68 uint8 num_handshake_messages() const { return num_handshake_messages_; } | 68 uint8 num_handshake_messages() const { return num_handshake_messages_; } |
| 69 | 69 |
| 70 int num_server_config_update_messages_sent() const { | 70 int num_server_config_update_messages_sent() const { |
| 71 return num_server_config_update_messages_sent_; | 71 return num_server_config_update_messages_sent_; |
| 72 } | 72 } |
| 73 | 73 |
| 74 // Sends the latest server config and source-address token to the client. | 74 // Sends the latest server config and source-address token to the client. |
| 75 // |on_handshake_complete| is true when this is called immediately after | |
| 76 // handshake completes, and should be false for subsequent updates. | |
| 77 virtual void SendServerConfigUpdate( | 75 virtual void SendServerConfigUpdate( |
| 78 const CachedNetworkParameters* cached_network_params, | 76 const CachedNetworkParameters* cached_network_params); |
| 79 bool on_handshake_complete); | |
| 80 | 77 |
| 81 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the | 78 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the |
| 82 // client. | 79 // client. |
| 83 void OnServerHelloAcked(); | 80 void OnServerHelloAcked(); |
| 84 | 81 |
| 85 void set_previous_cached_network_params( | 82 void set_previous_cached_network_params( |
| 86 CachedNetworkParameters cached_network_params); | 83 CachedNetworkParameters cached_network_params); |
| 87 | 84 |
| 88 protected: | 85 protected: |
| 89 virtual QuicErrorCode ProcessClientHello( | 86 virtual QuicErrorCode ProcessClientHello( |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // store here, and send back in future STKs if we have no better bandwidth | 140 // store here, and send back in future STKs if we have no better bandwidth |
| 144 // estimate to send. | 141 // estimate to send. |
| 145 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_; | 142 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_; |
| 146 | 143 |
| 147 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 144 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
| 148 }; | 145 }; |
| 149 | 146 |
| 150 } // namespace net | 147 } // namespace net |
| 151 | 148 |
| 152 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 149 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| OLD | NEW |