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

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

Issue 182523002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed rch's comments in Patch set 1 of CL 181463007 Created 6 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.cc ('k') | net/quic/quic_data_stream_test.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 #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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return true; 158 return true;
159 } 159 }
160 160
161 QuicErrorCode QuicCryptoServerStream::ProcessClientHello( 161 QuicErrorCode QuicCryptoServerStream::ProcessClientHello(
162 const CryptoHandshakeMessage& message, 162 const CryptoHandshakeMessage& message,
163 const ValidateClientHelloResultCallback::Result& result, 163 const ValidateClientHelloResultCallback::Result& result,
164 CryptoHandshakeMessage* reply, 164 CryptoHandshakeMessage* reply,
165 string* error_details) { 165 string* error_details) {
166 return crypto_config_.ProcessClientHello( 166 return crypto_config_.ProcessClientHello(
167 result, 167 result,
168 session()->connection()->guid(), 168 session()->connection()->connection_id(),
169 session()->connection()->peer_address(), 169 session()->connection()->peer_address(),
170 session()->connection()->version(), 170 session()->connection()->version(),
171 session()->connection()->supported_versions(), 171 session()->connection()->supported_versions(),
172 session()->connection()->clock(), 172 session()->connection()->clock(),
173 session()->connection()->random_generator(), 173 session()->connection()->random_generator(),
174 &crypto_negotiated_params_, reply, error_details); 174 &crypto_negotiated_params_, reply, error_details);
175 } 175 }
176 176
177 QuicCryptoServerStream::ValidateCallback::ValidateCallback( 177 QuicCryptoServerStream::ValidateCallback::ValidateCallback(
178 QuicCryptoServerStream* parent) : parent_(parent) { 178 QuicCryptoServerStream* parent) : parent_(parent) {
179 } 179 }
180 180
181 void QuicCryptoServerStream::ValidateCallback::Cancel() { 181 void QuicCryptoServerStream::ValidateCallback::Cancel() {
182 parent_ = NULL; 182 parent_ = NULL;
183 } 183 }
184 184
185 void QuicCryptoServerStream::ValidateCallback::RunImpl( 185 void QuicCryptoServerStream::ValidateCallback::RunImpl(
186 const CryptoHandshakeMessage& client_hello, 186 const CryptoHandshakeMessage& client_hello,
187 const Result& result) { 187 const Result& result) {
188 if (parent_ != NULL) { 188 if (parent_ != NULL) {
189 parent_->FinishProcessingHandshakeMessage(client_hello, result); 189 parent_->FinishProcessingHandshakeMessage(client_hello, result);
190 } 190 }
191 } 191 }
192 192
193 } // namespace net 193 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_data_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698