| 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
_MODEL_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_MODEL_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_MODEL_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT
_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 CreateCallback callback); | 49 CreateCallback callback); |
| 50 static std::unique_ptr<SettingsResetPromptModel> CreateForTesting( | 50 static std::unique_ptr<SettingsResetPromptModel> CreateForTesting( |
| 51 Profile* profile, | 51 Profile* profile, |
| 52 std::unique_ptr<SettingsResetPromptConfig> prompt_config, | 52 std::unique_ptr<SettingsResetPromptConfig> prompt_config, |
| 53 std::unique_ptr<ResettableSettingsSnapshot> settings_snapshot, | 53 std::unique_ptr<ResettableSettingsSnapshot> settings_snapshot, |
| 54 std::unique_ptr<BrandcodedDefaultSettings> default_settings, | 54 std::unique_ptr<BrandcodedDefaultSettings> default_settings, |
| 55 std::unique_ptr<ProfileResetter> profile_resetter); | 55 std::unique_ptr<ProfileResetter> profile_resetter); |
| 56 | 56 |
| 57 ~SettingsResetPromptModel(); | 57 ~SettingsResetPromptModel(); |
| 58 | 58 |
| 59 Profile* profile() const; |
| 59 SettingsResetPromptConfig* config() const; | 60 SettingsResetPromptConfig* config() const; |
| 60 | 61 |
| 61 // Returns true if reset is enabled for any settings type. | 62 // Returns true if reset is enabled for any settings type. |
| 62 bool ShouldPromptForReset() const; | 63 bool ShouldPromptForReset() const; |
| 63 // Resets the settings whose reset states are set to |RESET_REQUIRED| as | 64 // Resets the settings whose reset states are set to |RESET_REQUIRED| as |
| 64 // returned by the methods below. Should be called only on the UI | 65 // returned by the methods below. Should be called only on the UI |
| 65 // thread. |done_callback| will called from the UI thread when the reset | 66 // thread. |done_callback| will called from the UI thread when the reset |
| 66 // operation has been completed. | 67 // operation has been completed. |
| 67 // | 68 // |
| 68 // NOTE: Can only be called once during the lifetime of this object. | 69 // NOTE: Can only be called once during the lifetime of this object. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 ResetState startup_urls_reset_state_; | 132 ResetState startup_urls_reset_state_; |
| 132 | 133 |
| 133 ExtensionMap extensions_to_disable_; | 134 ExtensionMap extensions_to_disable_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptModel); | 136 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptModel); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace safe_browsing | 139 } // namespace safe_browsing |
| 139 | 140 |
| 140 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO
MPT_MODEL_H_ | 141 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO
MPT_MODEL_H_ |
| OLD | NEW |