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

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

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // set_server_nonce_strike_register_window_secs sets the number of seconds 319 // set_server_nonce_strike_register_window_secs sets the number of seconds
320 // around the current time that the server-nonce strike-register will accept 320 // around the current time that the server-nonce strike-register will accept
321 // nonces from. Setting a larger value allows for clients to delay follow-up 321 // nonces from. Setting a larger value allows for clients to delay follow-up
322 // client hellos for longer and still use server nonces as proofs of 322 // client hellos for longer and still use server nonces as proofs of
323 // uniqueness. 323 // uniqueness.
324 void set_server_nonce_strike_register_window_secs(uint32 window_secs); 324 void set_server_nonce_strike_register_window_secs(uint32 window_secs);
325 325
326 // Set and take ownership of the callback to invoke on primary config changes. 326 // Set and take ownership of the callback to invoke on primary config changes.
327 void AcquirePrimaryConfigChangedCb(PrimaryConfigChangedCallback* cb); 327 void AcquirePrimaryConfigChangedCb(PrimaryConfigChangedCallback* cb);
328 328
329 // Returns true if this config has a |proof_source_|.
330 bool HasProofSource() const;
331
329 private: 332 private:
330 friend class test::QuicCryptoServerConfigPeer; 333 friend class test::QuicCryptoServerConfigPeer;
331 334
332 // Config represents a server config: a collection of preferences and 335 // Config represents a server config: a collection of preferences and
333 // Diffie-Hellman public values. 336 // Diffie-Hellman public values.
334 class NET_EXPORT_PRIVATE Config : public QuicCryptoConfig, 337 class NET_EXPORT_PRIVATE Config : public QuicCryptoConfig,
335 public base::RefCounted<Config> { 338 public base::RefCounted<Config> {
336 public: 339 public:
337 Config(); 340 Config();
338 341
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 uint32 source_address_token_lifetime_secs_; 531 uint32 source_address_token_lifetime_secs_;
529 uint32 server_nonce_strike_register_max_entries_; 532 uint32 server_nonce_strike_register_max_entries_;
530 uint32 server_nonce_strike_register_window_secs_; 533 uint32 server_nonce_strike_register_window_secs_;
531 534
532 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); 535 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig);
533 }; 536 };
534 537
535 } // namespace net 538 } // namespace net
536 539
537 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 540 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm_test.cc ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698