OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/synchronization/waitable_event_watcher.h" | 10 #include "base/synchronization/waitable_event_watcher.h" |
11 #include "base/task/cancelable_task_tracker.h" | 11 #include "base/task/cancelable_task_tracker.h" |
12 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 12 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
13 #include "chrome/browser/browsing_data/browsing_data_remover_delegate.h" | 13 #include "chrome/browser/browsing_data/browsing_data_remover_delegate.h" |
14 #include "chrome/common/features.h" | 14 #include "chrome/common/features.h" |
15 #include "components/browsing_data/core/browsing_data_utils.h" | 15 #include "components/browsing_data/core/browsing_data_utils.h" |
16 #include "components/offline_pages/core/offline_page_model.h" | 16 #include "components/offline_pages/core/offline_page_model.h" |
17 #include "components/search_engines/template_url_service.h" | 17 #include "components/search_engines/template_url_service.h" |
18 #include "media/media_features.h" | 18 #include "media/media_features.h" |
19 #include "ppapi/features/features.h" | 19 #include "ppapi/features/features.h" |
20 | 20 |
21 #if BUILDFLAG(ENABLE_PLUGINS) | 21 #if BUILDFLAG(ENABLE_PLUGINS) |
22 #include "chrome/browser/pepper_flash_settings_manager.h" | 22 #include "chrome/browser/pepper_flash_settings_manager.h" |
23 #endif | 23 #endif |
24 | 24 |
25 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
26 #include "chromeos/dbus/dbus_method_call_status.h" | 26 #include "chromeos/dbus/dbus_method_call_status.h" |
27 #endif | 27 #endif |
28 | 28 |
| 29 class Profile; |
29 class WebappRegistry; | 30 class WebappRegistry; |
30 | 31 |
31 // A delegate used by BrowsingDataRemover to delete data specific to Chrome | 32 // A delegate used by BrowsingDataRemover to delete data specific to Chrome |
32 // as the embedder. | 33 // as the embedder. |
33 class ChromeBrowsingDataRemoverDelegate : public BrowsingDataRemoverDelegate | 34 class ChromeBrowsingDataRemoverDelegate : public BrowsingDataRemoverDelegate |
34 #if BUILDFLAG(ENABLE_PLUGINS) | 35 #if BUILDFLAG(ENABLE_PLUGINS) |
35 , public PepperFlashSettingsManager::Client | 36 , public PepperFlashSettingsManager::Client |
36 #endif | 37 #endif |
37 { | 38 { |
38 public: | 39 public: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // not initialised, so the registry must be mocked out. | 141 // not initialised, so the registry must be mocked out. |
141 std::unique_ptr<WebappRegistry> webapp_registry_; | 142 std::unique_ptr<WebappRegistry> webapp_registry_; |
142 #endif | 143 #endif |
143 | 144 |
144 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; | 145 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); | 147 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); |
147 }; | 148 }; |
148 | 149 |
149 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | 150 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ |
OLD | NEW |