| 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 28 matching lines...) Expand all Loading... |
| 39 namespace test { | 39 namespace test { |
| 40 class QuicCryptoServerConfigPeer; | 40 class QuicCryptoServerConfigPeer; |
| 41 } // namespace test | 41 } // namespace test |
| 42 | 42 |
| 43 // Hook that allows application code to subscribe to primary config changes. | 43 // Hook that allows application code to subscribe to primary config changes. |
| 44 class PrimaryConfigChangedCallback { | 44 class PrimaryConfigChangedCallback { |
| 45 public: | 45 public: |
| 46 PrimaryConfigChangedCallback(); | 46 PrimaryConfigChangedCallback(); |
| 47 virtual ~PrimaryConfigChangedCallback(); | 47 virtual ~PrimaryConfigChangedCallback(); |
| 48 virtual void Run(const std::string& scid) = 0; | 48 virtual void Run(const std::string& scid) = 0; |
| 49 |
| 50 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(PrimaryConfigChangedCallback); |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 // Callback used to accept the result of the |client_hello| validation step. | 54 // Callback used to accept the result of the |client_hello| validation step. |
| 52 class NET_EXPORT_PRIVATE ValidateClientHelloResultCallback { | 55 class NET_EXPORT_PRIVATE ValidateClientHelloResultCallback { |
| 53 public: | 56 public: |
| 54 // Opaque token that holds information about the client_hello and | 57 // Opaque token that holds information about the client_hello and |
| 55 // its validity. Can be interpreted by calling ProcessClientHello. | 58 // its validity. Can be interpreted by calling ProcessClientHello. |
| 56 struct Result; | 59 struct Result; |
| 57 | 60 |
| 58 ValidateClientHelloResultCallback(); | 61 ValidateClientHelloResultCallback(); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 442 |
| 440 // These fields store configuration values. See the comments for their | 443 // These fields store configuration values. See the comments for their |
| 441 // respective setter functions. | 444 // respective setter functions. |
| 442 bool strike_register_no_startup_period_; | 445 bool strike_register_no_startup_period_; |
| 443 uint32 strike_register_max_entries_; | 446 uint32 strike_register_max_entries_; |
| 444 uint32 strike_register_window_secs_; | 447 uint32 strike_register_window_secs_; |
| 445 uint32 source_address_token_future_secs_; | 448 uint32 source_address_token_future_secs_; |
| 446 uint32 source_address_token_lifetime_secs_; | 449 uint32 source_address_token_lifetime_secs_; |
| 447 uint32 server_nonce_strike_register_max_entries_; | 450 uint32 server_nonce_strike_register_max_entries_; |
| 448 uint32 server_nonce_strike_register_window_secs_; | 451 uint32 server_nonce_strike_register_window_secs_; |
| 452 |
| 453 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); |
| 449 }; | 454 }; |
| 450 | 455 |
| 451 } // namespace net | 456 } // namespace net |
| 452 | 457 |
| 453 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 458 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |