| 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> | |
| 9 | |
| 10 #include "base/macros.h" | 8 #include "base/macros.h" |
| 11 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 12 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 10 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 13 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 14 #include "components/browser_sync/profile_sync_service.h" | 12 #include "components/browser_sync/profile_sync_service.h" |
| 15 #include "components/browsing_data/core/counters/browsing_data_counter.h" | 13 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 16 #include "components/prefs/pref_member.h" | 14 #include "components/prefs/pref_member.h" |
| 17 | 15 |
| 18 namespace options { | 16 namespace options { |
| 19 | 17 |
| 20 // Clear browser data handler page UI handler. | 18 // Clear browser data handler page UI handler. |
| 21 class ClearBrowserDataHandler : public OptionsPageUIHandler, | 19 class ClearBrowserDataHandler : public OptionsPageUIHandler, |
| 22 public BrowsingDataRemover::Observer, | 20 public BrowsingDataRemover::Observer, |
| 23 public syncer::SyncServiceObserver { | 21 public sync_driver::SyncServiceObserver { |
| 24 public: | 22 public: |
| 25 ClearBrowserDataHandler(); | 23 ClearBrowserDataHandler(); |
| 26 ~ClearBrowserDataHandler() override; | 24 ~ClearBrowserDataHandler() override; |
| 27 | 25 |
| 28 // OptionsPageUIHandler implementation. | 26 // OptionsPageUIHandler implementation. |
| 29 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; | 27 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
| 30 void InitializeHandler() override; | 28 void InitializeHandler() override; |
| 31 void InitializePage() override; | 29 void InitializePage() override; |
| 32 | 30 |
| 33 // WebUIMessageHandler implementation. | 31 // WebUIMessageHandler implementation. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 95 |
| 98 // A weak pointer factory for asynchronous calls referencing this class. | 96 // A weak pointer factory for asynchronous calls referencing this class. |
| 99 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; | 97 base::WeakPtrFactory<ClearBrowserDataHandler> weak_ptr_factory_; |
| 100 | 98 |
| 101 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); | 99 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
| 102 }; | 100 }; |
| 103 | 101 |
| 104 } // namespace options | 102 } // namespace options |
| 105 | 103 |
| 106 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ | 104 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ |
| OLD | NEW |