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

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

Issue 242593002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Use uint32 instead of int Created 6 years, 8 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_connection_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 "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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_crypto_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698