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

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

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 years, 4 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
« no previous file with comments | « net/quic/quic_connection_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/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 CachedNetworkParameters;
17 class CryptoHandshakeMessage; 18 class CryptoHandshakeMessage;
18 class QuicCryptoServerConfig; 19 class QuicCryptoServerConfig;
19 class QuicCryptoServerStream; 20 class QuicCryptoServerStream;
20 class QuicSession; 21 class QuicSession;
21 22
22 namespace test { 23 namespace test {
23 class CryptoTestUtils; 24 class CryptoTestUtils;
24 } // namespace test 25 } // namespace test
25 26
26 // Receives a notification when the server hello (SHLO) has been ACKed by the 27 // Receives a notification when the server hello (SHLO) has been ACKed by the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // presented a ChannelID. Otherwise it returns false. 67 // presented a ChannelID. Otherwise it returns false.
67 bool GetBase64SHA256ClientChannelID(std::string* output) const; 68 bool GetBase64SHA256ClientChannelID(std::string* output) const;
68 69
69 uint8 num_handshake_messages() const { return num_handshake_messages_; } 70 uint8 num_handshake_messages() const { return num_handshake_messages_; }
70 71
71 int num_server_config_update_messages_sent() const { 72 int num_server_config_update_messages_sent() const {
72 return num_server_config_update_messages_sent_; 73 return num_server_config_update_messages_sent_;
73 } 74 }
74 75
75 // Sends the latest server config and source-address token to the client. 76 // Sends the latest server config and source-address token to the client.
76 void SendServerConfigUpdate(); 77 virtual void SendServerConfigUpdate(
78 const CachedNetworkParameters* cached_network_params);
77 79
78 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the 80 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the
79 // client. 81 // client.
80 void OnServerHelloAcked(); 82 void OnServerHelloAcked();
81 83
82 protected: 84 protected:
83 virtual QuicErrorCode ProcessClientHello( 85 virtual QuicErrorCode ProcessClientHello(
84 const CryptoHandshakeMessage& message, 86 const CryptoHandshakeMessage& message,
85 const ValidateClientHelloResultCallback::Result& result, 87 const ValidateClientHelloResultCallback::Result& result,
86 CryptoHandshakeMessage* reply, 88 CryptoHandshakeMessage* reply,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 132
131 // Number of server config update (SCUP) messages sent by this stream. 133 // Number of server config update (SCUP) messages sent by this stream.
132 int num_server_config_update_messages_sent_; 134 int num_server_config_update_messages_sent_;
133 135
134 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 136 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
135 }; 137 };
136 138
137 } // namespace net 139 } // namespace net
138 140
139 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 141 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_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