| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Adds a |counter| for browsing data. | 53 // Adds a |counter| for browsing data. |
| 54 void AddCounter(std::unique_ptr<browsing_data::BrowsingDataCounter> counter); | 54 void AddCounter(std::unique_ptr<browsing_data::BrowsingDataCounter> counter); |
| 55 | 55 |
| 56 // Updates a counter in the UI according to the |result|. | 56 // Updates a counter in the UI according to the |result|. |
| 57 void UpdateCounterText( | 57 void UpdateCounterText( |
| 58 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result); | 58 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result); |
| 59 | 59 |
| 60 // Implementation of SyncServiceObserver. Updates the support string at the | 60 // Implementation of SyncServiceObserver. Updates the support string at the |
| 61 // bottom of the dialog. | 61 // bottom of the dialog. |
| 62 void OnStateChanged() override; | 62 void OnStateChanged(syncer::SyncService* sync) override; |
| 63 | 63 |
| 64 // Finds out whether we should show a notice informing the user about other | 64 // Finds out whether we should show a notice informing the user about other |
| 65 // forms of browsing history. Responds with an asynchronous callback to | 65 // forms of browsing history. Responds with an asynchronous callback to |
| 66 // |UpdateHistoryNotice|. | 66 // |UpdateHistoryNotice|. |
| 67 void RefreshHistoryNotice(); | 67 void RefreshHistoryNotice(); |
| 68 | 68 |
| 69 // Shows or hides the notice about other forms of browsing history. | 69 // Shows or hides the notice about other forms of browsing history. |
| 70 void UpdateHistoryNotice(bool show); | 70 void UpdateHistoryNotice(bool show); |
| 71 | 71 |
| 72 // Remembers whether we should popup a dialog about other forms of browsing | 72 // Remembers whether we should popup a dialog about other forms of browsing |
| (...skipping 24 matching lines...) Expand all Loading... |
| 97 | 97 |
| 98 // A weak pointer factory for asynchronous calls referencing this class. | 98 // A weak pointer factory for asynchronous calls referencing this class. |
| 99 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; | 99 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 101 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace options | 104 } // namespace options |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 106 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
| OLD | NEW |