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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 months 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_protocol.h" 11 #include "net/quic/quic_protocol.h"
11 #include "net/quic/reliable_quic_stream.h" 12 #include "net/quic/reliable_quic_stream.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 class CryptoHandshakeMessage; 16 class CryptoHandshakeMessage;
16 class QuicSession; 17 class QuicSession;
17 18
18 // Crypto handshake messages in QUIC take place over a reserved 19 // Crypto handshake messages in QUIC take place over a reserved
19 // reliable stream with the id 1. Each endpoint (client and server) 20 // reliable stream with the id 1. Each endpoint (client and server)
(...skipping 18 matching lines...) Expand all
38 // ReliableQuicStream implementation 39 // ReliableQuicStream implementation
39 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 40 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
40 41
41 // Sends |message| to the peer. 42 // Sends |message| to the peer.
42 // TODO(wtc): return a success/failure status. 43 // TODO(wtc): return a success/failure status.
43 void SendHandshakeMessage(const CryptoHandshakeMessage& message); 44 void SendHandshakeMessage(const CryptoHandshakeMessage& message);
44 45
45 bool encryption_established() { return encryption_established_; } 46 bool encryption_established() { return encryption_established_; }
46 bool handshake_confirmed() { return handshake_confirmed_; } 47 bool handshake_confirmed() { return handshake_confirmed_; }
47 48
49 const QuicNegotiatedParameters& negotiated_params() const;
50 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const;
51
48 protected: 52 protected:
49 // Closes the connection 53 // Closes the connection
50 void CloseConnection(QuicErrorCode error); 54 void CloseConnection(QuicErrorCode error);
51 void CloseConnectionWithDetails(QuicErrorCode error, const string& details); 55 void CloseConnectionWithDetails(QuicErrorCode error, const string& details);
52 56
53 bool encryption_established_; 57 bool encryption_established_;
54 bool handshake_confirmed_; 58 bool handshake_confirmed_;
55 59
60 QuicNegotiatedParameters negotiated_params_;
61 QuicCryptoNegotiatedParameters crypto_negotiated_params_;
62
56 private: 63 private:
57 CryptoFramer crypto_framer_; 64 CryptoFramer crypto_framer_;
58 65
59 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); 66 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream);
60 }; 67 };
61 68
62 } // namespace net 69 } // namespace net
63 70
64 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ 71 #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