OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_CONFIG_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_CONFIG_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_CONFIG_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_CONFIG_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 }; | 58 }; |
59 enum ConfigError : int; | 59 enum ConfigError : int; |
60 | 60 |
61 bool Init(); | 61 bool Init(); |
62 ConfigError ParseDomainHashes(const std::string& domain_hashes_json); | 62 ConfigError ParseDomainHashes(const std::string& domain_hashes_json); |
63 | 63 |
64 // Map of 32 byte SHA256 hashes to integer domain IDs. | 64 // Map of 32 byte SHA256 hashes to integer domain IDs. |
65 std::unordered_map<SHA256Hash, int, SHA256HashHasher> domain_hashes_; | 65 std::unordered_map<SHA256Hash, int, SHA256HashHasher> domain_hashes_; |
66 | 66 |
67 // Other feature parameters. | 67 // Other feature parameters. |
| 68 // |
| 69 // If you add any required feature parameters, make sure to update the field |
| 70 // trial testing configuration for the "SettingsResetPrompt" feature in |
| 71 // src/testing/variations/fieldtrial_testing_config.json |
68 base::TimeDelta delay_before_prompt_; | 72 base::TimeDelta delay_before_prompt_; |
69 int prompt_wave_ = 0; | 73 int prompt_wave_ = 0; |
70 base::TimeDelta time_between_prompts_; | 74 base::TimeDelta time_between_prompts_; |
71 | 75 |
72 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptConfig); | 76 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptConfig); |
73 }; | 77 }; |
74 | 78 |
75 } // namespace safe_browsing | 79 } // namespace safe_browsing |
76 | 80 |
77 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO
MPT_CONFIG_H_ | 81 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO
MPT_CONFIG_H_ |
OLD | NEW |