| OLD | NEW |
| 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/cached_network_parameters.h" | 9 #include "net/quic/crypto/cached_network_parameters.h" |
| 10 #include "net/quic/crypto/crypto_protocol.h" | 10 #include "net/quic/crypto/crypto_protocol.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 session()->connection()->version(), | 238 session()->connection()->version(), |
| 239 session()->connection()->supported_versions(), | 239 session()->connection()->supported_versions(), |
| 240 session()->connection()->clock(), | 240 session()->connection()->clock(), |
| 241 session()->connection()->random_generator(), | 241 session()->connection()->random_generator(), |
| 242 &crypto_negotiated_params_, reply, error_details); | 242 &crypto_negotiated_params_, reply, error_details); |
| 243 } | 243 } |
| 244 | 244 |
| 245 void QuicCryptoServerStream::OverrideQuicConfigDefaults(QuicConfig* config) { | 245 void QuicCryptoServerStream::OverrideQuicConfigDefaults(QuicConfig* config) { |
| 246 } | 246 } |
| 247 | 247 |
| 248 CachedNetworkParameters* | 248 const CachedNetworkParameters* |
| 249 QuicCryptoServerStream::get_previous_cached_network_params() { | 249 QuicCryptoServerStream::previous_cached_network_params() const { |
| 250 return previous_cached_network_params_.get(); | 250 return previous_cached_network_params_.get(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 QuicCryptoServerStream::ValidateCallback::ValidateCallback( | 253 QuicCryptoServerStream::ValidateCallback::ValidateCallback( |
| 254 QuicCryptoServerStream* parent) : parent_(parent) { | 254 QuicCryptoServerStream* parent) : parent_(parent) { |
| 255 } | 255 } |
| 256 | 256 |
| 257 void QuicCryptoServerStream::ValidateCallback::Cancel() { parent_ = nullptr; } | 257 void QuicCryptoServerStream::ValidateCallback::Cancel() { parent_ = nullptr; } |
| 258 | 258 |
| 259 void QuicCryptoServerStream::ValidateCallback::RunImpl( | 259 void QuicCryptoServerStream::ValidateCallback::RunImpl( |
| 260 const CryptoHandshakeMessage& client_hello, | 260 const CryptoHandshakeMessage& client_hello, |
| 261 const Result& result) { | 261 const Result& result) { |
| 262 if (parent_ != nullptr) { | 262 if (parent_ != nullptr) { |
| 263 parent_->FinishProcessingHandshakeMessage(client_hello, result); | 263 parent_->FinishProcessingHandshakeMessage(client_hello, result); |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 } // namespace net | 267 } // namespace net |
| OLD | NEW |