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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/synchronization/waitable_event_watcher.h" | 13 #include "base/synchronization/waitable_event_watcher.h" |
14 #include "base/task/cancelable_task_tracker.h" | 14 #include "base/task/cancelable_task_tracker.h" |
15 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 15 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
16 #include "chrome/browser/browsing_data/browsing_data_remover_delegate.h" | 16 #include "chrome/browser/browsing_data/chrome_browsing_data_types.h" |
17 #include "chrome/common/features.h" | 17 #include "chrome/common/features.h" |
18 #include "components/browsing_data/core/browsing_data_utils.h" | 18 #include "components/browsing_data/core/browsing_data_utils.h" |
19 #include "components/offline_pages/core/offline_page_model.h" | 19 #include "components/offline_pages/core/offline_page_model.h" |
20 #include "components/search_engines/template_url_service.h" | 20 #include "components/search_engines/template_url_service.h" |
21 #include "media/media_features.h" | 21 #include "media/media_features.h" |
22 #include "ppapi/features/features.h" | 22 #include "ppapi/features/features.h" |
23 | 23 |
24 #if BUILDFLAG(ENABLE_PLUGINS) | 24 #if BUILDFLAG(ENABLE_PLUGINS) |
25 #include "chrome/browser/pepper_flash_settings_manager.h" | 25 #include "chrome/browser/pepper_flash_settings_manager.h" |
26 #endif | 26 #endif |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 base::WeakPtrFactory<SubTask> weak_ptr_factory_; | 72 base::WeakPtrFactory<SubTask> weak_ptr_factory_; |
73 }; | 73 }; |
74 | 74 |
75 ChromeBrowsingDataRemoverDelegate(content::BrowserContext* browser_context); | 75 ChromeBrowsingDataRemoverDelegate(content::BrowserContext* browser_context); |
76 ~ChromeBrowsingDataRemoverDelegate() override; | 76 ~ChromeBrowsingDataRemoverDelegate() override; |
77 | 77 |
78 // Removes Chrome-specific data. | 78 // Removes Chrome-specific data. |
79 void RemoveEmbedderData( | 79 void RemoveEmbedderData( |
80 const base::Time& delete_begin, | 80 const base::Time& delete_begin, |
81 const base::Time& delete_end, | 81 const base::Time& delete_end, |
82 int remove_mask, | 82 const std::set<const content::BrowsingDataType*>& remove_mask, |
83 const content::BrowsingDataFilterBuilder& filter_builder, | 83 const content::BrowsingDataFilterBuilder& filter_builder, |
84 int origin_type_mask, | 84 int origin_type_mask, |
85 const base::Closure& callback) override; | 85 const base::Closure& callback) override; |
86 | 86 |
87 #if defined(OS_ANDROID) | 87 #if defined(OS_ANDROID) |
88 void OverrideWebappRegistryForTesting( | 88 void OverrideWebappRegistryForTesting( |
89 std::unique_ptr<WebappRegistry> webapp_registry); | 89 std::unique_ptr<WebappRegistry> webapp_registry); |
90 #endif | 90 #endif |
91 | 91 |
92 #if BUILDFLAG(ENABLE_PLUGINS) | 92 #if BUILDFLAG(ENABLE_PLUGINS) |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // not initialised, so the registry must be mocked out. | 203 // not initialised, so the registry must be mocked out. |
204 std::unique_ptr<WebappRegistry> webapp_registry_; | 204 std::unique_ptr<WebappRegistry> webapp_registry_; |
205 #endif | 205 #endif |
206 | 206 |
207 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; | 207 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); | 209 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); |
210 }; | 210 }; |
211 | 211 |
212 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | 212 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ |
OLD | NEW |