| OLD | NEW |
| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // client hellos for longer and still use server nonces as proofs of | 329 // client hellos for longer and still use server nonces as proofs of |
| 330 // uniqueness. | 330 // uniqueness. |
| 331 void set_server_nonce_strike_register_window_secs(uint32 window_secs); | 331 void set_server_nonce_strike_register_window_secs(uint32 window_secs); |
| 332 | 332 |
| 333 // Set and take ownership of the callback to invoke on primary config changes. | 333 // Set and take ownership of the callback to invoke on primary config changes. |
| 334 void AcquirePrimaryConfigChangedCb(PrimaryConfigChangedCallback* cb); | 334 void AcquirePrimaryConfigChangedCb(PrimaryConfigChangedCallback* cb); |
| 335 | 335 |
| 336 // Returns true if this config has a |proof_source_|. | 336 // Returns true if this config has a |proof_source_|. |
| 337 bool HasProofSource() const; | 337 bool HasProofSource() const; |
| 338 | 338 |
| 339 // Returns the number of configs this object owns. |
| 340 int NumberOfConfigs() const; |
| 341 |
| 339 private: | 342 private: |
| 340 friend class test::QuicCryptoServerConfigPeer; | 343 friend class test::QuicCryptoServerConfigPeer; |
| 341 | 344 |
| 342 // Config represents a server config: a collection of preferences and | 345 // Config represents a server config: a collection of preferences and |
| 343 // Diffie-Hellman public values. | 346 // Diffie-Hellman public values. |
| 344 class NET_EXPORT_PRIVATE Config : public QuicCryptoConfig, | 347 class NET_EXPORT_PRIVATE Config : public QuicCryptoConfig, |
| 345 public base::RefCounted<Config> { | 348 public base::RefCounted<Config> { |
| 346 public: | 349 public: |
| 347 Config(); | 350 Config(); |
| 348 | 351 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 uint32 source_address_token_lifetime_secs_; | 580 uint32 source_address_token_lifetime_secs_; |
| 578 uint32 server_nonce_strike_register_max_entries_; | 581 uint32 server_nonce_strike_register_max_entries_; |
| 579 uint32 server_nonce_strike_register_window_secs_; | 582 uint32 server_nonce_strike_register_window_secs_; |
| 580 | 583 |
| 581 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); | 584 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); |
| 582 }; | 585 }; |
| 583 | 586 |
| 584 } // namespace net | 587 } // namespace net |
| 585 | 588 |
| 586 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 589 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |