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_CORE_QUIC_CRYPTO_STREAM_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_STREAM_H_ |
6 #define NET_QUIC_CORE_QUIC_CRYPTO_STREAM_H_ | 6 #define NET_QUIC_CORE_QUIC_CRYPTO_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 bool encryption_established() const { return encryption_established_; } | 75 bool encryption_established() const { return encryption_established_; } |
76 bool handshake_confirmed() const { return handshake_confirmed_; } | 76 bool handshake_confirmed() const { return handshake_confirmed_; } |
77 | 77 |
78 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; | 78 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; |
79 | 79 |
80 protected: | 80 protected: |
81 bool encryption_established_; | 81 bool encryption_established_; |
82 bool handshake_confirmed_; | 82 bool handshake_confirmed_; |
83 | 83 |
84 scoped_refptr<QuicCryptoNegotiatedParameters> crypto_negotiated_params_; | 84 QuicReferenceCountedPointer<QuicCryptoNegotiatedParameters> |
| 85 crypto_negotiated_params_; |
85 | 86 |
86 private: | 87 private: |
87 CryptoFramer crypto_framer_; | 88 CryptoFramer crypto_framer_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); | 90 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace net | 93 } // namespace net |
93 | 94 |
94 #endif // NET_QUIC_CORE_QUIC_CRYPTO_STREAM_H_ | 95 #endif // NET_QUIC_CORE_QUIC_CRYPTO_STREAM_H_ |
OLD | NEW |