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

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

Issue 330333006: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linus_tsan error - reverted the change to ConnectionMigrationClientPortChanged unitttest Created 6 years, 6 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.cc ('k') | net/quic/quic_dispatcher.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 #include "net/quic/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "crypto/secure_hash.h" 8 #include "crypto/secure_hash.h"
9 #include "net/quic/crypto/crypto_protocol.h" 9 #include "net/quic/crypto/crypto_protocol.h"
10 #include "net/quic/crypto/crypto_utils.h" 10 #include "net/quic/crypto/crypto_utils.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 const CryptoHandshakeMessage& message, 166 const CryptoHandshakeMessage& message,
167 const ValidateClientHelloResultCallback::Result& result, 167 const ValidateClientHelloResultCallback::Result& result,
168 CryptoHandshakeMessage* reply, 168 CryptoHandshakeMessage* reply,
169 string* error_details) { 169 string* error_details) {
170 return crypto_config_.ProcessClientHello( 170 return crypto_config_.ProcessClientHello(
171 result, 171 result,
172 session()->connection()->connection_id(), 172 session()->connection()->connection_id(),
173 session()->connection()->peer_address(), 173 session()->connection()->peer_address(),
174 session()->connection()->version(), 174 session()->connection()->version(),
175 session()->connection()->supported_versions(), 175 session()->connection()->supported_versions(),
176 session()->max_flow_control_receive_window_bytes(),
177 session()->connection()->clock(), 176 session()->connection()->clock(),
178 session()->connection()->random_generator(), 177 session()->connection()->random_generator(),
179 &crypto_negotiated_params_, reply, error_details); 178 &crypto_negotiated_params_, reply, error_details);
180 } 179 }
181 180
182 void QuicCryptoServerStream::OverrideQuicConfigDefaults(QuicConfig* config) { 181 void QuicCryptoServerStream::OverrideQuicConfigDefaults(QuicConfig* config) {
183 } 182 }
184 183
185 QuicCryptoServerStream::ValidateCallback::ValidateCallback( 184 QuicCryptoServerStream::ValidateCallback::ValidateCallback(
186 QuicCryptoServerStream* parent) : parent_(parent) { 185 QuicCryptoServerStream* parent) : parent_(parent) {
187 } 186 }
188 187
189 void QuicCryptoServerStream::ValidateCallback::Cancel() { 188 void QuicCryptoServerStream::ValidateCallback::Cancel() {
190 parent_ = NULL; 189 parent_ = NULL;
191 } 190 }
192 191
193 void QuicCryptoServerStream::ValidateCallback::RunImpl( 192 void QuicCryptoServerStream::ValidateCallback::RunImpl(
194 const CryptoHandshakeMessage& client_hello, 193 const CryptoHandshakeMessage& client_hello,
195 const Result& result) { 194 const Result& result) {
196 if (parent_ != NULL) { 195 if (parent_ != NULL) {
197 parent_->FinishProcessingHandshakeMessage(client_hello, result); 196 parent_->FinishProcessingHandshakeMessage(client_hello, result);
198 } 197 }
199 } 198 }
200 199
201 } // namespace net 200 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698