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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Calls |callback| when the task is finished. | 44 // Calls |callback| when the task is finished. |
45 class TaskObserver; | 45 class TaskObserver; |
46 | 46 |
47 // Clears browsing data, called by Javascript. | 47 // Clears browsing data, called by Javascript. |
48 void HandleClearBrowsingData(const base::ListValue* value); | 48 void HandleClearBrowsingData(const base::ListValue* value); |
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 // Fetches important sites, called by Javascript. |
| 55 void HandleFetchImportantSites(const base::ListValue* value); |
| 56 |
54 // Initializes the dialog UI. Called by JavaScript when the DOM is ready. | 57 // Initializes the dialog UI. Called by JavaScript when the DOM is ready. |
55 void HandleInitialize(const base::ListValue* args); | 58 void HandleInitialize(const base::ListValue* args); |
56 | 59 |
57 // Implementation of SyncServiceObserver. | 60 // Implementation of SyncServiceObserver. |
58 void OnStateChanged(syncer::SyncService* sync) override; | 61 void OnStateChanged(syncer::SyncService* sync) override; |
59 | 62 |
60 // Updates the footer of the dialog when the sync state changes. | 63 // Updates the footer of the dialog when the sync state changes. |
61 void UpdateSyncState(); | 64 void UpdateSyncState(); |
62 | 65 |
63 // Finds out whether we should show notice about other forms of history stored | 66 // Finds out whether we should show notice about other forms of history stored |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 108 |
106 // A weak pointer factory for asynchronous calls referencing this class. | 109 // A weak pointer factory for asynchronous calls referencing this class. |
107 base::WeakPtrFactory<ClearBrowsingDataHandler> weak_ptr_factory_; | 110 base::WeakPtrFactory<ClearBrowsingDataHandler> weak_ptr_factory_; |
108 | 111 |
109 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataHandler); | 112 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataHandler); |
110 }; | 113 }; |
111 | 114 |
112 } // namespace settings | 115 } // namespace settings |
113 | 116 |
114 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER
_H_ | 117 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_CLEAR_BROWSING_DATA_HANDLER
_H_ |
OLD | NEW |