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

Side by Side Diff: net/quic/core/crypto/quic_crypto_server_config.h

Issue 2467563002: Add missing plumbing of ProofSource::Details in some QUIC codepaths (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 private: 115 private:
116 DISALLOW_COPY_AND_ASSIGN(ValidateClientHelloResultCallback); 116 DISALLOW_COPY_AND_ASSIGN(ValidateClientHelloResultCallback);
117 }; 117 };
118 118
119 // Callback used to accept the result of the ProcessClientHello method. 119 // Callback used to accept the result of the ProcessClientHello method.
120 class NET_EXPORT_PRIVATE ProcessClientHelloResultCallback { 120 class NET_EXPORT_PRIVATE ProcessClientHelloResultCallback {
121 public: 121 public:
122 ProcessClientHelloResultCallback(); 122 ProcessClientHelloResultCallback();
123 virtual ~ProcessClientHelloResultCallback(); 123 virtual ~ProcessClientHelloResultCallback();
124 virtual void Run( 124 virtual void Run(QuicErrorCode error,
125 QuicErrorCode error, 125 const std::string& error_details,
126 const std::string& error_details, 126 std::unique_ptr<CryptoHandshakeMessage> message,
127 std::unique_ptr<CryptoHandshakeMessage> message, 127 std::unique_ptr<DiversificationNonce> diversification_nonce,
128 std::unique_ptr<DiversificationNonce> diversification_nonce) = 0; 128 std::unique_ptr<ProofSource::Details> details) = 0;
129 129
130 private: 130 private:
131 DISALLOW_COPY_AND_ASSIGN(ProcessClientHelloResultCallback); 131 DISALLOW_COPY_AND_ASSIGN(ProcessClientHelloResultCallback);
132 }; 132 };
133 133
134 // Callback used to receive the results of a call to 134 // Callback used to receive the results of a call to
135 // BuildServerConfigUpdateMessage. 135 // BuildServerConfigUpdateMessage.
136 class BuildServerConfigUpdateMessageResultCallback { 136 class BuildServerConfigUpdateMessageResultCallback {
137 public: 137 public:
138 BuildServerConfigUpdateMessageResultCallback() = default; 138 BuildServerConfigUpdateMessageResultCallback() = default;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 std::unique_ptr<ValidateClientHelloResultCallback> done_cb) const; 581 std::unique_ptr<ValidateClientHelloResultCallback> done_cb) const;
582 582
583 // Callback class for bridging between ProcessClientHello and 583 // Callback class for bridging between ProcessClientHello and
584 // ProcessClientHelloAfterGetProof. 584 // ProcessClientHelloAfterGetProof.
585 class ProcessClientHelloCallback; 585 class ProcessClientHelloCallback;
586 friend class ProcessClientHelloCallback; 586 friend class ProcessClientHelloCallback;
587 587
588 // Portion of ProcessClientHello which executes after GetProof. 588 // Portion of ProcessClientHello which executes after GetProof.
589 void ProcessClientHelloAfterGetProof( 589 void ProcessClientHelloAfterGetProof(
590 bool found_error, 590 bool found_error,
591 std::unique_ptr<ProofSource::Details> proof_source_details,
591 const ValidateClientHelloResultCallback::Result& validate_chlo_result, 592 const ValidateClientHelloResultCallback::Result& validate_chlo_result,
592 bool reject_only, 593 bool reject_only,
593 QuicConnectionId connection_id, 594 QuicConnectionId connection_id,
594 const IPEndPoint& client_address, 595 const IPEndPoint& client_address,
595 QuicVersion version, 596 QuicVersion version,
596 const QuicVersionVector& supported_versions, 597 const QuicVersionVector& supported_versions,
597 bool use_stateless_rejects, 598 bool use_stateless_rejects,
598 QuicConnectionId server_designated_connection_id, 599 QuicConnectionId server_designated_connection_id,
599 const QuicClock* clock, 600 const QuicClock* clock,
600 QuicRandom* rand, 601 QuicRandom* rand,
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 std::string primary_scid; 862 std::string primary_scid;
862 863
863 private: 864 private:
864 friend class base::RefCounted<QuicCryptoProof>; 865 friend class base::RefCounted<QuicCryptoProof>;
865 virtual ~QuicCryptoProof(); 866 virtual ~QuicCryptoProof();
866 }; 867 };
867 868
868 } // namespace net 869 } // namespace net
869 870
870 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 871 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_server_test.cc ('k') | net/quic/core/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698