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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // hello message and handles handshake success/failure. | 116 // hello message and handles handshake success/failure. |
117 void FinishProcessingHandshakeMessage( | 117 void FinishProcessingHandshakeMessage( |
118 const CryptoHandshakeMessage& message, | 118 const CryptoHandshakeMessage& message, |
119 const ValidateClientHelloResultCallback::Result& result); | 119 const ValidateClientHelloResultCallback::Result& result); |
120 | 120 |
121 // crypto_config_ contains crypto parameters for the handshake. | 121 // crypto_config_ contains crypto parameters for the handshake. |
122 const QuicCryptoServerConfig& crypto_config_; | 122 const QuicCryptoServerConfig& crypto_config_; |
123 | 123 |
124 // Pointer to the active callback that will receive the result of | 124 // Pointer to the active callback that will receive the result of |
125 // the client hello validation request and forward it to | 125 // the client hello validation request and forward it to |
126 // FinishProcessingHandshakeMessage for processing. NULL if no | 126 // FinishProcessingHandshakeMessage for processing. nullptr if no |
127 // handshake message is being validated. | 127 // handshake message is being validated. |
128 ValidateCallback* validate_client_hello_cb_; | 128 ValidateCallback* validate_client_hello_cb_; |
129 | 129 |
130 // Number of handshake messages received by this stream. | 130 // Number of handshake messages received by this stream. |
131 uint8 num_handshake_messages_; | 131 uint8 num_handshake_messages_; |
132 | 132 |
133 // Number of server config update (SCUP) messages sent by this stream. | 133 // Number of server config update (SCUP) messages sent by this stream. |
134 int num_server_config_update_messages_sent_; | 134 int num_server_config_update_messages_sent_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 136 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace net | 139 } // namespace net |
140 | 140 |
141 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 141 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |