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

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

Issue 2542993002: Refactoring: Make QuicSignedServerConfig contain a QuicCryptoProof (Closed)
Patch Set: Created 4 years 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 | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | no next file » | 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 <cstdint> 8 #include <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool peer_supports_stateless_rejects) override; 122 bool peer_supports_stateless_rejects) override;
123 void SetPreviousCachedNetworkParams( 123 void SetPreviousCachedNetworkParams(
124 CachedNetworkParameters cached_network_params) override; 124 CachedNetworkParameters cached_network_params) override;
125 125
126 // NOTE: Indicating that the Expect-CT header should be sent here presents 126 // NOTE: Indicating that the Expect-CT header should be sent here presents
127 // a layering violation to some extent. The Expect-CT header only applies to 127 // a layering violation to some extent. The Expect-CT header only applies to
128 // HTTP connections, while this class can be used for non-HTTP applications. 128 // HTTP connections, while this class can be used for non-HTTP applications.
129 // However, it is exposed here because that is the only place where the 129 // However, it is exposed here because that is the only place where the
130 // configuration for the certificate used in the connection is accessible. 130 // configuration for the certificate used in the connection is accessible.
131 bool ShouldSendExpectCTHeader() const { 131 bool ShouldSendExpectCTHeader() const {
132 return signed_config_->send_expect_ct_header; 132 return signed_config_->proof.send_expect_ct_header;
133 } 133 }
134 134
135 protected: 135 protected:
136 virtual void ProcessClientHello( 136 virtual void ProcessClientHello(
137 scoped_refptr<ValidateClientHelloResultCallback::Result> result, 137 scoped_refptr<ValidateClientHelloResultCallback::Result> result,
138 std::unique_ptr<ProofSource::Details> proof_source_details, 138 std::unique_ptr<ProofSource::Details> proof_source_details,
139 std::unique_ptr<ProcessClientHelloResultCallback> done_cb); 139 std::unique_ptr<ProcessClientHelloResultCallback> done_cb);
140 140
141 // Hook that allows the server to set QuicConfig defaults just 141 // Hook that allows the server to set QuicConfig defaults just
142 // before going through the parameter negotiation step. 142 // before going through the parameter negotiation step.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // ProcessClientHello and forward it to 278 // ProcessClientHello and forward it to
279 // FinishProcessingHandshakeMessageAfterProcessClientHello. 279 // FinishProcessingHandshakeMessageAfterProcessClientHello.
280 ProcessClientHelloCallback* process_client_hello_cb_; 280 ProcessClientHelloCallback* process_client_hello_cb_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 282 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
283 }; 283 };
284 284
285 } // namespace net 285 } // namespace net
286 286
287 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 287 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698