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 CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Called when the reset profile dialog is hidden. | 67 // Called when the reset profile dialog is hidden. |
68 void OnHideResetProfileDialog(const base::ListValue* args); | 68 void OnHideResetProfileDialog(const base::ListValue* args); |
69 | 69 |
70 // Called when the reset profile banner is shown. | 70 // Called when the reset profile banner is shown. |
71 void OnHideResetProfileBanner(const base::ListValue* args); | 71 void OnHideResetProfileBanner(const base::ListValue* args); |
72 | 72 |
73 // Called when BrandcodeConfigFetcher completed fetching settings. | 73 // Called when BrandcodeConfigFetcher completed fetching settings. |
74 void OnSettingsFetched(); | 74 void OnSettingsFetched(); |
75 | 75 |
76 // Resets profile settings to default values. |send_settings| is true if user | 76 // Resets profile settings to default values. |send_settings| is true if user |
77 // gave his consent to upload broken settings to Google for analysis. | 77 // gave their consent to upload broken settings to Google for analysis. |
78 void ResetProfile(std::string callback_id, bool send_settings); | 78 void ResetProfile(std::string callback_id, bool send_settings); |
79 | 79 |
80 // Closes the dialog once all requested settings has been reset. | 80 // Closes the dialog once all requested settings has been reset. |
81 void OnResetProfileSettingsDone(std::string callback_id, | 81 void OnResetProfileSettingsDone(std::string callback_id, |
82 bool send_feedback); | 82 bool send_feedback); |
83 | 83 |
84 #if defined(OS_CHROMEOS) | 84 #if defined(OS_CHROMEOS) |
85 // Will be called when powerwash dialog is shown. | 85 // Will be called when powerwash dialog is shown. |
86 void OnShowPowerwashDialog(const base::ListValue* args); | 86 void OnShowPowerwashDialog(const base::ListValue* args); |
87 #endif // defined(OS_CHROMEOS) | 87 #endif // defined(OS_CHROMEOS) |
(...skipping 11 matching lines...) Expand all Loading... |
99 std::string brandcode_; | 99 std::string brandcode_; |
100 | 100 |
101 base::WeakPtrFactory<ResetSettingsHandler> weak_ptr_factory_; | 101 base::WeakPtrFactory<ResetSettingsHandler> weak_ptr_factory_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(ResetSettingsHandler); | 103 DISALLOW_COPY_AND_ASSIGN(ResetSettingsHandler); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace settings | 106 } // namespace settings |
107 | 107 |
108 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ | 108 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ |
OLD | NEW |