| 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_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_CRYPTO_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/quic/crypto/crypto_framer.h" | 9 #include "net/quic/crypto/crypto_framer.h" |
| 10 #include "net/quic/crypto/crypto_utils.h" | 10 #include "net/quic/crypto/crypto_utils.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // Sends |message| to the peer. | 45 // Sends |message| to the peer. |
| 46 // TODO(wtc): return a success/failure status. | 46 // TODO(wtc): return a success/failure status. |
| 47 void SendHandshakeMessage(const CryptoHandshakeMessage& message); | 47 void SendHandshakeMessage(const CryptoHandshakeMessage& message); |
| 48 | 48 |
| 49 bool encryption_established() { return encryption_established_; } | 49 bool encryption_established() { return encryption_established_; } |
| 50 bool handshake_confirmed() { return handshake_confirmed_; } | 50 bool handshake_confirmed() { return handshake_confirmed_; } |
| 51 | 51 |
| 52 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; | 52 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; |
| 53 | 53 |
| 54 // Crypto stream is special and is not flow controlled. | |
| 55 virtual bool IsFlowControlEnabled() const OVERRIDE; | |
| 56 | |
| 57 protected: | 54 protected: |
| 58 bool encryption_established_; | 55 bool encryption_established_; |
| 59 bool handshake_confirmed_; | 56 bool handshake_confirmed_; |
| 60 | 57 |
| 61 QuicCryptoNegotiatedParameters crypto_negotiated_params_; | 58 QuicCryptoNegotiatedParameters crypto_negotiated_params_; |
| 62 | 59 |
| 63 private: | 60 private: |
| 64 CryptoFramer crypto_framer_; | 61 CryptoFramer crypto_framer_; |
| 65 | 62 |
| 66 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); | 63 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); |
| 67 }; | 64 }; |
| 68 | 65 |
| 69 } // namespace net | 66 } // namespace net |
| 70 | 67 |
| 71 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ | 68 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ |
| OLD | NEW |