OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/prefs/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "chrome/browser/browsing_data/browsing_data_counter.h" | 10 #include "chrome/browser/browsing_data/browsing_data_counter.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; | 26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
27 void InitializeHandler() override; | 27 void InitializeHandler() override; |
28 void InitializePage() override; | 28 void InitializePage() override; |
29 | 29 |
30 // WebUIMessageHandler implementation. | 30 // WebUIMessageHandler implementation. |
31 void RegisterMessages() override; | 31 void RegisterMessages() override; |
32 | 32 |
33 void UpdateInfoBannerVisibility(); | 33 void UpdateInfoBannerVisibility(); |
34 | 34 |
35 private: | 35 private: |
36 // Javascript callback for when the CBD dialog is opened. | |
37 void OnPageOpened(const base::ListValue* value); | |
Bernhard Bauer
2015/10/15 11:30:28
Add a comment about the parameters?
msramek
2015/10/15 13:54:03
Done.
| |
38 | |
36 // Javascript callback to start clearing data. | 39 // Javascript callback to start clearing data. |
37 void HandleClearBrowserData(const base::ListValue* value); | 40 void HandleClearBrowserData(const base::ListValue* value); |
38 | 41 |
39 // BrowsingDataRemover::Observer implementation. | 42 // BrowsingDataRemover::Observer implementation. |
40 // Closes the dialog once all requested data has been removed. | 43 // Closes the dialog once all requested data has been removed. |
41 void OnBrowsingDataRemoverDone() override; | 44 void OnBrowsingDataRemoverDone() override; |
42 | 45 |
43 // Updates UI when the pref to allow clearing history changes. | 46 // Updates UI when the pref to allow clearing history changes. |
44 virtual void OnBrowsingHistoryPrefChanged(); | 47 virtual void OnBrowsingHistoryPrefChanged(); |
45 | 48 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 | 82 |
80 // Informs us whether the user is syncing their data. | 83 // Informs us whether the user is syncing their data. |
81 ProfileSyncService* sync_service_; | 84 ProfileSyncService* sync_service_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 86 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
84 }; | 87 }; |
85 | 88 |
86 } // namespace options | 89 } // namespace options |
87 | 90 |
88 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 91 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
OLD | NEW |