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

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

Issue 1783713003: Add a boolean use_stateless_rejects_if_peer_supported argument to the QuicCryptoServerStream constr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 QuicCryptoServerStreamBase* server_stream_; 46 QuicCryptoServerStreamBase* server_stream_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(ServerHelloNotifier); 48 DISALLOW_COPY_AND_ASSIGN(ServerHelloNotifier);
49 }; 49 };
50 50
51 // TODO(alyssar) see what can be moved out of QuicCryptoServerStream with 51 // TODO(alyssar) see what can be moved out of QuicCryptoServerStream with
52 // various code and test refactoring. 52 // various code and test refactoring.
53 class NET_EXPORT_PRIVATE QuicCryptoServerStreamBase : public QuicCryptoStream { 53 class NET_EXPORT_PRIVATE QuicCryptoServerStreamBase : public QuicCryptoStream {
54 public: 54 public:
55 // |crypto_config| must outlive the stream.
56 explicit QuicCryptoServerStreamBase(QuicSession* session) 55 explicit QuicCryptoServerStreamBase(QuicSession* session)
57 : QuicCryptoStream(session) {} 56 : QuicCryptoStream(session) {}
58 ~QuicCryptoServerStreamBase() override {} 57 ~QuicCryptoServerStreamBase() override {}
59 58
60 // Cancel any outstanding callbacks, such as asynchronous validation of client 59 // Cancel any outstanding callbacks, such as asynchronous validation of client
61 // hello. 60 // hello.
62 virtual void CancelOutstandingCallbacks() = 0; 61 virtual void CancelOutstandingCallbacks() = 0;
63 62
64 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded, 63 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded,
65 // SHA-256 hash of the client's ChannelID key and returns true, if the client 64 // SHA-256 hash of the client's ChannelID key and returns true, if the client
(...skipping 20 matching lines...) Expand all
86 const = 0; 85 const = 0;
87 virtual void SetPreviousCachedNetworkParams( 86 virtual void SetPreviousCachedNetworkParams(
88 CachedNetworkParameters cached_network_params) = 0; 87 CachedNetworkParameters cached_network_params) = 0;
89 }; 88 };
90 89
91 class NET_EXPORT_PRIVATE QuicCryptoServerStream 90 class NET_EXPORT_PRIVATE QuicCryptoServerStream
92 : public QuicCryptoServerStreamBase { 91 : public QuicCryptoServerStreamBase {
93 public: 92 public:
94 // |crypto_config| must outlive the stream. 93 // |crypto_config| must outlive the stream.
95 QuicCryptoServerStream(const QuicCryptoServerConfig* crypto_config, 94 QuicCryptoServerStream(const QuicCryptoServerConfig* crypto_config,
95 bool use_stateless_rejects_if_peer_supported,
96 QuicSession* session); 96 QuicSession* session);
97 ~QuicCryptoServerStream() override; 97 ~QuicCryptoServerStream() override;
98 98
99 // From QuicCryptoServerStreamBase 99 // From QuicCryptoServerStreamBase
100 void CancelOutstandingCallbacks() override; 100 void CancelOutstandingCallbacks() override;
101 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; 101 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override;
102 bool GetBase64SHA256ClientChannelID(std::string* output) const override; 102 bool GetBase64SHA256ClientChannelID(std::string* output) const override;
103 void SendServerConfigUpdate( 103 void SendServerConfigUpdate(
104 const CachedNetworkParameters* cached_network_params) override; 104 const CachedNetworkParameters* cached_network_params) override;
105 void OnServerHelloAcked() override; 105 void OnServerHelloAcked() override;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // TODO(jokulik): Remove once client stateless reject support 204 // TODO(jokulik): Remove once client stateless reject support
205 // becomes the default. 205 // becomes the default.
206 bool peer_supports_stateless_rejects_; 206 bool peer_supports_stateless_rejects_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 208 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
209 }; 209 };
210 210
211 } // namespace net 211 } // namespace net
212 212
213 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 213 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698