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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "chrome/browser/browsing_data/browsing_data_counter.h" | 10 #include "chrome/browser/browsing_data/browsing_data_counter.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void HandleClearBrowserData(const base::ListValue* value); | 42 void HandleClearBrowserData(const base::ListValue* value); |
43 | 43 |
44 // BrowsingDataRemover::Observer implementation. | 44 // BrowsingDataRemover::Observer implementation. |
45 // Closes the dialog once all requested data has been removed. | 45 // Closes the dialog once all requested data has been removed. |
46 void OnBrowsingDataRemoverDone() override; | 46 void OnBrowsingDataRemoverDone() override; |
47 | 47 |
48 // Updates UI when the pref to allow clearing history changes. | 48 // Updates UI when the pref to allow clearing history changes. |
49 virtual void OnBrowsingHistoryPrefChanged(); | 49 virtual void OnBrowsingHistoryPrefChanged(); |
50 | 50 |
51 // Adds a |counter| for browsing data. | 51 // Adds a |counter| for browsing data. |
52 void AddCounter(scoped_ptr<BrowsingDataCounter> counter); | 52 void AddCounter(std::unique_ptr<BrowsingDataCounter> counter); |
53 | 53 |
54 // Updates a counter in the UI according to the |result|. | 54 // Updates a counter in the UI according to the |result|. |
55 void UpdateCounterText(scoped_ptr<BrowsingDataCounter::Result> result); | 55 void UpdateCounterText(std::unique_ptr<BrowsingDataCounter::Result> result); |
56 | 56 |
57 // Implementation of SyncServiceObserver. Updates the support string at the | 57 // Implementation of SyncServiceObserver. Updates the support string at the |
58 // bottom of the dialog. | 58 // bottom of the dialog. |
59 void OnStateChanged() override; | 59 void OnStateChanged() override; |
60 | 60 |
61 // Finds out whether we should show a notice informing the user about other | 61 // Finds out whether we should show a notice informing the user about other |
62 // forms of browsing history. Responds with an asynchronous callback to | 62 // forms of browsing history. Responds with an asynchronous callback to |
63 // |UpdateHistoryNotice|. | 63 // |UpdateHistoryNotice|. |
64 void RefreshHistoryNotice(); | 64 void RefreshHistoryNotice(); |
65 | 65 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // A weak pointer factory for asynchronous calls referencing this class. | 99 // A weak pointer factory for asynchronous calls referencing this class. |
100 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; | 100 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 102 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace options | 105 } // namespace options |
106 | 106 |
107 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 107 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
OLD | NEW |