| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bool client_nonce_well_formed; | 52 bool client_nonce_well_formed; |
| 53 bool unique; | 53 bool unique; |
| 54 base::StringPiece sni; | 54 base::StringPiece sni; |
| 55 base::StringPiece client_nonce; | 55 base::StringPiece client_nonce; |
| 56 base::StringPiece server_nonce; | 56 base::StringPiece server_nonce; |
| 57 base::StringPiece user_agent_id; | 57 base::StringPiece user_agent_id; |
| 58 SourceAddressTokens source_address_tokens; | 58 SourceAddressTokens source_address_tokens; |
| 59 | 59 |
| 60 // Errors from EvaluateClientHello. | 60 // Errors from EvaluateClientHello. |
| 61 std::vector<uint32> reject_reasons; | 61 std::vector<uint32> reject_reasons; |
| 62 COMPILE_ASSERT(sizeof(QuicTag) == sizeof(uint32), header_out_of_sync); | 62 static_assert(sizeof(QuicTag) == sizeof(uint32), "header out of sync"); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 namespace test { | 65 namespace test { |
| 66 class QuicCryptoServerConfigPeer; | 66 class QuicCryptoServerConfigPeer; |
| 67 } // namespace test | 67 } // namespace test |
| 68 | 68 |
| 69 // Hook that allows application code to subscribe to primary config changes. | 69 // Hook that allows application code to subscribe to primary config changes. |
| 70 class PrimaryConfigChangedCallback { | 70 class PrimaryConfigChangedCallback { |
| 71 public: | 71 public: |
| 72 PrimaryConfigChangedCallback(); | 72 PrimaryConfigChangedCallback(); |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 uint32 source_address_token_lifetime_secs_; | 577 uint32 source_address_token_lifetime_secs_; |
| 578 uint32 server_nonce_strike_register_max_entries_; | 578 uint32 server_nonce_strike_register_max_entries_; |
| 579 uint32 server_nonce_strike_register_window_secs_; | 579 uint32 server_nonce_strike_register_window_secs_; |
| 580 | 580 |
| 581 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); | 581 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerConfig); |
| 582 }; | 582 }; |
| 583 | 583 |
| 584 } // namespace net | 584 } // namespace net |
| 585 | 585 |
| 586 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 586 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |