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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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.h ('k') | net/quic/quic_data_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_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/crypto/quic_crypto_server_config.h" 11 #include "net/quic/crypto/quic_crypto_server_config.h"
12 #include "net/quic/quic_config.h" 12 #include "net/quic/quic_config.h"
13 #include "net/quic/quic_crypto_stream.h" 13 #include "net/quic/quic_crypto_stream.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class CryptoHandshakeMessage; 17 class CryptoHandshakeMessage;
18 class QuicCryptoServerConfig; 18 class QuicCryptoServerConfig;
19 class QuicSession; 19 class QuicSession;
20 20
21 namespace test { 21 namespace test {
22 class CryptoTestUtils; 22 class CryptoTestUtils;
23 } // namespace test 23 } // namespace test
24 24
25 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream { 25 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream {
26 public: 26 public:
27 QuicCryptoServerStream(const QuicCryptoServerConfig& crypto_config, 27 QuicCryptoServerStream(const QuicCryptoServerConfig& crypto_config,
28 QuicSession* session); 28 QuicSession* session);
29 explicit QuicCryptoServerStream(QuicSession* session); 29 explicit QuicCryptoServerStream(QuicSession* session);
30 virtual ~QuicCryptoServerStream(); 30 virtual ~QuicCryptoServerStream() OVERRIDE;
31 31
32 // CryptoFramerVisitorInterface implementation 32 // CryptoFramerVisitorInterface implementation
33 virtual void OnHandshakeMessage( 33 virtual void OnHandshakeMessage(
34 const CryptoHandshakeMessage& message) OVERRIDE; 34 const CryptoHandshakeMessage& message) OVERRIDE;
35 35
36 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded, 36 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded,
37 // SHA-256 hash of the client's ChannelID key and returns true, if the client 37 // SHA-256 hash of the client's ChannelID key and returns true, if the client
38 // presented a ChannelID. Otherwise it returns false. 38 // presented a ChannelID. Otherwise it returns false.
39 bool GetBase64SHA256ClientChannelID(std::string* output) const; 39 bool GetBase64SHA256ClientChannelID(std::string* output) const;
40 40
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Pointer to the active callback that will receive the result of 77 // Pointer to the active callback that will receive the result of
78 // the client hello validation request and forward it to 78 // the client hello validation request and forward it to
79 // FinishProcessingHandshakeMessage for processing. NULL if no 79 // FinishProcessingHandshakeMessage for processing. NULL if no
80 // handshake message is being validated. 80 // handshake message is being validated.
81 ValidateCallback* validate_client_hello_cb_; 81 ValidateCallback* validate_client_hello_cb_;
82 }; 82 };
83 83
84 } // namespace net 84 } // namespace net
85 85
86 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 86 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.h ('k') | net/quic/quic_data_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698