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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // presented a ChannelID. Otherwise it returns false. 65 // presented a ChannelID. Otherwise it returns false.
66 bool GetBase64SHA256ClientChannelID(std::string* output) const; 66 bool GetBase64SHA256ClientChannelID(std::string* output) const;
67 67
68 uint8 num_handshake_messages() const { return num_handshake_messages_; } 68 uint8 num_handshake_messages() const { return num_handshake_messages_; }
69 69
70 int num_server_config_update_messages_sent() const { 70 int num_server_config_update_messages_sent() const {
71 return num_server_config_update_messages_sent_; 71 return num_server_config_update_messages_sent_;
72 } 72 }
73 73
74 // Sends the latest server config and source-address token to the client. 74 // Sends the latest server config and source-address token to the client.
75 // |on_handshake_complete| is true when this is called immediately after
76 // handshake completes, and should be false for subsequent updates.
77 virtual void SendServerConfigUpdate( 75 virtual void SendServerConfigUpdate(
78 const CachedNetworkParameters* cached_network_params, 76 const CachedNetworkParameters* cached_network_params);
79 bool on_handshake_complete);
80 77
81 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the 78 // Called by the ServerHello AckNotifier once the SHLO has been ACKed by the
82 // client. 79 // client.
83 void OnServerHelloAcked(); 80 void OnServerHelloAcked();
84 81
85 void set_previous_cached_network_params( 82 void set_previous_cached_network_params(
86 CachedNetworkParameters cached_network_params); 83 CachedNetworkParameters cached_network_params);
87 84
88 protected: 85 protected:
89 virtual QuicErrorCode ProcessClientHello( 86 virtual QuicErrorCode ProcessClientHello(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // store here, and send back in future STKs if we have no better bandwidth 140 // store here, and send back in future STKs if we have no better bandwidth
144 // estimate to send. 141 // estimate to send.
145 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_; 142 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_;
146 143
147 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 144 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
148 }; 145 };
149 146
150 } // namespace net 147 } // namespace net
151 148
152 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 149 #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