| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SETTINGS_CLEAR_BROWSING_DATA_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Called when a clearing task finished. |webui_callback_id| is provided | 50 // Called when a clearing task finished. |webui_callback_id| is provided |
| 51 // by the WebUI action that initiated it. | 51 // by the WebUI action that initiated it. |
| 52 void OnClearingTaskFinished(const std::string& webui_callback_id); | 52 void OnClearingTaskFinished(const std::string& webui_callback_id); |
| 53 | 53 |
| 54 // Initializes the dialog UI. Called by JavaScript when the DOM is ready. | 54 // Initializes the dialog UI. Called by JavaScript when the DOM is ready. |
| 55 void HandleInitialize(const base::ListValue* args); | 55 void HandleInitialize(const base::ListValue* args); |
| 56 | 56 |
| 57 // Implementation of SyncServiceObserver. Updates the footer of the dialog | 57 // Implementation of SyncServiceObserver. Updates the footer of the dialog |
| 58 // when the sync state changes. | 58 // when the sync state changes. |
| 59 void OnStateChanged() override; | 59 void OnStateChanged(syncer::SyncService* sync) override; |
| 60 | 60 |
| 61 // Finds out whether we should show notice about other forms of history stored | 61 // Finds out whether we should show notice about other forms of history stored |
| 62 // in user's account. | 62 // in user's account. |
| 63 void RefreshHistoryNotice(); | 63 void RefreshHistoryNotice(); |
| 64 | 64 |
| 65 // Called as an asynchronous response to |RefreshHistoryNotice()|. Shows or | 65 // Called as an asynchronous response to |RefreshHistoryNotice()|. Shows or |
| 66 // hides the footer about other forms of history stored in user's account. | 66 // hides the footer about other forms of history stored in user's account. |
| 67 void UpdateHistoryNotice(bool show); | 67 void UpdateHistoryNotice(bool show); |
| 68 | 68 |
| 69 // Called as an asynchronous response to |RefreshHistoryNotice()|. Enables or | 69 // Called as an asynchronous response to |RefreshHistoryNotice()|. Enables or |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // A weak pointer factory for asynchronous calls referencing this class. | 104 // A weak pointer factory for asynchronous calls referencing this class. |
| 105 base::WeakPtrFactory<ClearBrowsingDataHandler> weak_ptr_factory_; | 105 base::WeakPtrFactory<ClearBrowsingDataHandler> weak_ptr_factory_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataHandler); | 107 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataHandler); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace settings | 110 } // namespace settings |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER
_H_ | 112 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER
_H_ |
| OLD | NEW |