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

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

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows 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_config.h"
(...skipping 28 matching lines...) Expand all
39 // ReliableQuicStream implementation 39 // ReliableQuicStream implementation
40 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 40 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
41 41
42 // Sends |message| to the peer. 42 // Sends |message| to the peer.
43 // TODO(wtc): return a success/failure status. 43 // TODO(wtc): return a success/failure status.
44 void SendHandshakeMessage(const CryptoHandshakeMessage& message); 44 void SendHandshakeMessage(const CryptoHandshakeMessage& message);
45 45
46 bool encryption_established() { return encryption_established_; } 46 bool encryption_established() { return encryption_established_; }
47 bool handshake_confirmed() { return handshake_confirmed_; } 47 bool handshake_confirmed() { return handshake_confirmed_; }
48 48
49 const QuicNegotiatedParameters& negotiated_params() const;
50 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; 49 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const;
51 50
52 protected: 51 protected:
53 // Closes the connection 52 // Closes the connection
54 void CloseConnection(QuicErrorCode error); 53 void CloseConnection(QuicErrorCode error);
55 void CloseConnectionWithDetails(QuicErrorCode error, const string& details); 54 void CloseConnectionWithDetails(QuicErrorCode error, const string& details);
56 55
57 bool encryption_established_; 56 bool encryption_established_;
58 bool handshake_confirmed_; 57 bool handshake_confirmed_;
59 58
60 QuicNegotiatedParameters negotiated_params_;
61 QuicCryptoNegotiatedParameters crypto_negotiated_params_; 59 QuicCryptoNegotiatedParameters crypto_negotiated_params_;
62 60
63 private: 61 private:
64 CryptoFramer crypto_framer_; 62 CryptoFramer crypto_framer_;
65 63
66 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); 64 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream);
67 }; 65 };
68 66
69 } // namespace net 67 } // namespace net
70 68
71 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ 69 #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