Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: net/quic/quic_crypto_stream.h

Issue 100173005: Break out the basic reliable QUIC stream functionality from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_crypto_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/quic/crypto/crypto_framer.h" 8 #include "net/quic/crypto/crypto_framer.h"
9 #include "net/quic/crypto/crypto_utils.h" 9 #include "net/quic/crypto/crypto_utils.h"
10 #include "net/quic/quic_config.h" 10 #include "net/quic/quic_config.h"
(...skipping 20 matching lines...) Expand all
31 public CryptoFramerVisitorInterface { 31 public CryptoFramerVisitorInterface {
32 public: 32 public:
33 explicit QuicCryptoStream(QuicSession* session); 33 explicit QuicCryptoStream(QuicSession* session);
34 34
35 // CryptoFramerVisitorInterface implementation 35 // CryptoFramerVisitorInterface implementation
36 virtual void OnError(CryptoFramer* framer) OVERRIDE; 36 virtual void OnError(CryptoFramer* framer) OVERRIDE;
37 virtual void OnHandshakeMessage( 37 virtual void OnHandshakeMessage(
38 const CryptoHandshakeMessage& message) OVERRIDE; 38 const CryptoHandshakeMessage& message) OVERRIDE;
39 39
40 // ReliableQuicStream implementation 40 // ReliableQuicStream implementation
41 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 41 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE;
42 virtual QuicPriority EffectivePriority() const OVERRIDE;
42 43
43 // Sends |message| to the peer. 44 // Sends |message| to the peer.
44 // TODO(wtc): return a success/failure status. 45 // TODO(wtc): return a success/failure status.
45 void SendHandshakeMessage(const CryptoHandshakeMessage& message); 46 void SendHandshakeMessage(const CryptoHandshakeMessage& message);
46 47
47 bool encryption_established() { return encryption_established_; } 48 bool encryption_established() { return encryption_established_; }
48 bool handshake_confirmed() { return handshake_confirmed_; } 49 bool handshake_confirmed() { return handshake_confirmed_; }
49 50
50 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; 51 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const;
51 52
52 protected: 53 protected:
53 bool encryption_established_; 54 bool encryption_established_;
54 bool handshake_confirmed_; 55 bool handshake_confirmed_;
55 56
56 QuicCryptoNegotiatedParameters crypto_negotiated_params_; 57 QuicCryptoNegotiatedParameters crypto_negotiated_params_;
57 58
58 private: 59 private:
59 CryptoFramer crypto_framer_; 60 CryptoFramer crypto_framer_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); 62 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream);
62 }; 63 };
63 64
64 } // namespace net 65 } // namespace net
65 66
66 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ 67 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_crypto_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698