Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h

Issue 2716333002: Implement important sites dialog for desktop. (Closed)
Patch Set: remove favicon Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698