| 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 21 matching lines...) Expand all Loading... |
| 32 public CryptoFramerVisitorInterface { | 32 public CryptoFramerVisitorInterface { |
| 33 public: | 33 public: |
| 34 explicit QuicCryptoStream(QuicSession* session); | 34 explicit QuicCryptoStream(QuicSession* session); |
| 35 | 35 |
| 36 // CryptoFramerVisitorInterface implementation | 36 // CryptoFramerVisitorInterface implementation |
| 37 void OnError(CryptoFramer* framer) override; | 37 void OnError(CryptoFramer* framer) override; |
| 38 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; | 38 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; |
| 39 | 39 |
| 40 // ReliableQuicStream implementation | 40 // ReliableQuicStream implementation |
| 41 void OnDataAvailable() override; | 41 void OnDataAvailable() override; |
| 42 QuicPriority EffectivePriority() const override; | 42 SpdyPriority Priority() const override; |
| 43 | 43 |
| 44 // Sends |message| to the peer. | 44 // Sends |message| to the peer. |
| 45 // TODO(wtc): return a success/failure status. | 45 // TODO(wtc): return a success/failure status. |
| 46 void SendHandshakeMessage(const CryptoHandshakeMessage& message); | 46 void SendHandshakeMessage(const CryptoHandshakeMessage& message); |
| 47 // As above, but registers |delegate| for notification when |message| has been | 47 // As above, but registers |delegate| for notification when |message| has been |
| 48 // ACKed by the peer. | 48 // ACKed by the peer. |
| 49 void SendHandshakeMessage(const CryptoHandshakeMessage& message, | 49 void SendHandshakeMessage(const CryptoHandshakeMessage& message, |
| 50 QuicAckListenerInterface* listener); | 50 QuicAckListenerInterface* listener); |
| 51 | 51 |
| 52 // Performs key extraction to derive a new secret of |result_len| bytes | 52 // Performs key extraction to derive a new secret of |result_len| bytes |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 CryptoFramer crypto_framer_; | 73 CryptoFramer crypto_framer_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); | 75 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace net | 78 } // namespace net |
| 79 | 79 |
| 80 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ | 80 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ |
| OLD | NEW |