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

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

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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_client_stream_test.cc ('k') | net/quic/quic_crypto_server_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_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
11 #include "net/quic/quic_crypto_stream.h" 11 #include "net/quic/quic_crypto_stream.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class QuicSession; 15 class QuicSession;
16 struct CryptoHandshakeMessage; 16 struct CryptoHandshakeMessage;
17 17
18 namespace test {
19 class CryptoTestUtils;
20 } // namespace test
21
18 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream { 22 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream {
19 public: 23 public:
20 explicit QuicCryptoServerStream(QuicSession* session); 24 explicit QuicCryptoServerStream(QuicSession* session);
21 virtual ~QuicCryptoServerStream(); 25 virtual ~QuicCryptoServerStream();
22 26
23 // CryptoFramerVisitorInterface implementation 27 // CryptoFramerVisitorInterface implementation
24 virtual void OnHandshakeMessage( 28 virtual void OnHandshakeMessage(
25 const CryptoHandshakeMessage& message) OVERRIDE; 29 const CryptoHandshakeMessage& message) OVERRIDE;
26 30
27 private: 31 private:
32 friend class test::CryptoTestUtils;
33
28 // config_ contains non-crypto parameters that are negotiated in the crypto 34 // config_ contains non-crypto parameters that are negotiated in the crypto
29 // handshake. 35 // handshake.
30 QuicConfig config_; 36 QuicConfig config_;
31 // crypto_config_ contains crypto parameters for the handshake. 37 // crypto_config_ contains crypto parameters for the handshake.
32 QuicCryptoServerConfig crypto_config_; 38 QuicCryptoServerConfig crypto_config_;
33 std::string server_nonce_; 39 std::string server_nonce_;
34 40
35 QuicNegotiatedParameters negotiated_params_; 41 QuicNegotiatedParameters negotiated_params_;
36 QuicCryptoNegotiatedParams crypto_negotiated_params_; 42 QuicCryptoNegotiatedParams crypto_negotiated_params_;
37 }; 43 };
38 44
39 } // namespace net 45 } // namespace net
40 46
41 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 47 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream_test.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698