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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 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
« no previous file with comments | « net/quic/core/quic_crypto_server_stream_test.cc ('k') | net/quic/core/quic_headers_stream.h » ('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_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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_server_stream_test.cc ('k') | net/quic/core/quic_headers_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698