| 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 #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 <cstdint> | 8 #include <cstdint> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 friend class test::CryptoTestUtils; | 139 friend class test::CryptoTestUtils; |
| 140 friend class test::QuicCryptoServerStreamPeer; | 140 friend class test::QuicCryptoServerStreamPeer; |
| 141 | 141 |
| 142 class ValidateCallback : public ValidateClientHelloResultCallback { | 142 class ValidateCallback : public ValidateClientHelloResultCallback { |
| 143 public: | 143 public: |
| 144 explicit ValidateCallback(QuicCryptoServerStream* parent); | 144 explicit ValidateCallback(QuicCryptoServerStream* parent); |
| 145 // To allow the parent to detach itself from the callback before deletion. | 145 // To allow the parent to detach itself from the callback before deletion. |
| 146 void Cancel(); | 146 void Cancel(); |
| 147 | 147 |
| 148 // From ValidateClientHelloResultCallback | 148 // From ValidateClientHelloResultCallback |
| 149 void RunImpl(std::unique_ptr<Result> result, | 149 void Run(std::unique_ptr<Result> result, |
| 150 std::unique_ptr<ProofSource::Details> details) override; | 150 std::unique_ptr<ProofSource::Details> details) override; |
| 151 | 151 |
| 152 private: | 152 private: |
| 153 QuicCryptoServerStream* parent_; | 153 QuicCryptoServerStream* parent_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(ValidateCallback); | 155 DISALLOW_COPY_AND_ASSIGN(ValidateCallback); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 class SendServerConfigUpdateCallback | 158 class SendServerConfigUpdateCallback |
| 159 : public BuildServerConfigUpdateMessageResultCallback { | 159 : public BuildServerConfigUpdateMessageResultCallback { |
| 160 public: | 160 public: |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 // Size of the packet containing the most recently received CHLO. | 254 // Size of the packet containing the most recently received CHLO. |
| 255 QuicByteCount chlo_packet_size_; | 255 QuicByteCount chlo_packet_size_; |
| 256 | 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 257 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 } // namespace net | 260 } // namespace net |
| 261 | 261 |
| 262 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 262 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| OLD | NEW |