| 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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Removes Chrome-specific data. | 43 // Removes Chrome-specific data. |
| 44 void RemoveEmbedderData( | 44 void RemoveEmbedderData( |
| 45 const base::Time& delete_begin, | 45 const base::Time& delete_begin, |
| 46 const base::Time& delete_end, | 46 const base::Time& delete_end, |
| 47 int remove_mask, | 47 int remove_mask, |
| 48 const BrowsingDataFilterBuilder& filter_builder, | 48 const BrowsingDataFilterBuilder& filter_builder, |
| 49 int origin_type_mask, | 49 int origin_type_mask, |
| 50 const base::Closure& callback) override; | 50 const base::Closure& callback) override; |
| 51 | 51 |
| 52 #if BUILDFLAG(ANDROID_JAVA_UI) | 52 #if defined(OS_ANDROID) |
| 53 void OverrideWebappRegistryForTesting( | 53 void OverrideWebappRegistryForTesting( |
| 54 std::unique_ptr<WebappRegistry> webapp_registry); | 54 std::unique_ptr<WebappRegistry> webapp_registry); |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // If AllDone(), calls the callback provided in RemoveEmbedderData(). | 58 // If AllDone(), calls the callback provided in RemoveEmbedderData(). |
| 59 void NotifyIfDone(); | 59 void NotifyIfDone(); |
| 60 | 60 |
| 61 // Whether there are no running deletion tasks. | 61 // Whether there are no running deletion tasks. |
| 62 bool AllDone(); | 62 bool AllDone(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 #if !defined(DISABLE_NACL) | 107 #if !defined(DISABLE_NACL) |
| 108 BrowsingDataRemover::SubTask clear_nacl_cache_; | 108 BrowsingDataRemover::SubTask clear_nacl_cache_; |
| 109 BrowsingDataRemover::SubTask clear_pnacl_cache_; | 109 BrowsingDataRemover::SubTask clear_pnacl_cache_; |
| 110 #endif | 110 #endif |
| 111 BrowsingDataRemover::SubTask clear_hostname_resolution_cache_; | 111 BrowsingDataRemover::SubTask clear_hostname_resolution_cache_; |
| 112 BrowsingDataRemover::SubTask clear_network_predictor_; | 112 BrowsingDataRemover::SubTask clear_network_predictor_; |
| 113 BrowsingDataRemover::SubTask clear_networking_history_; | 113 BrowsingDataRemover::SubTask clear_networking_history_; |
| 114 BrowsingDataRemover::SubTask clear_passwords_; | 114 BrowsingDataRemover::SubTask clear_passwords_; |
| 115 BrowsingDataRemover::SubTask clear_passwords_stats_; | 115 BrowsingDataRemover::SubTask clear_passwords_stats_; |
| 116 BrowsingDataRemover::SubTask clear_platform_keys_; | 116 BrowsingDataRemover::SubTask clear_platform_keys_; |
| 117 #if BUILDFLAG(ANDROID_JAVA_UI) | 117 #if defined(OS_ANDROID) |
| 118 BrowsingDataRemover::SubTask clear_precache_history_; | 118 BrowsingDataRemover::SubTask clear_precache_history_; |
| 119 BrowsingDataRemover::SubTask clear_offline_page_data_; | 119 BrowsingDataRemover::SubTask clear_offline_page_data_; |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 #if BUILDFLAG(ENABLE_WEBRTC) | 122 #if BUILDFLAG(ENABLE_WEBRTC) |
| 123 BrowsingDataRemover::SubTask clear_webrtc_logs_; | 123 BrowsingDataRemover::SubTask clear_webrtc_logs_; |
| 124 #endif | 124 #endif |
| 125 BrowsingDataRemover::SubTask clear_auto_sign_in_; | 125 BrowsingDataRemover::SubTask clear_auto_sign_in_; |
| 126 | 126 |
| 127 #if BUILDFLAG(ENABLE_PLUGINS) | 127 #if BUILDFLAG(ENABLE_PLUGINS) |
| 128 uint32_t deauthorize_flash_content_licenses_request_id_ = 0; | 128 uint32_t deauthorize_flash_content_licenses_request_id_ = 0; |
| 129 | 129 |
| 130 // Used to deauthorize content licenses for Pepper Flash. | 130 // Used to deauthorize content licenses for Pepper Flash. |
| 131 std::unique_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_; | 131 std::unique_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_; |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 // Used if we need to clear history. | 134 // Used if we need to clear history. |
| 135 base::CancelableTaskTracker history_task_tracker_; | 135 base::CancelableTaskTracker history_task_tracker_; |
| 136 | 136 |
| 137 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; | 137 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; |
| 138 | 138 |
| 139 #if BUILDFLAG(ANDROID_JAVA_UI) | 139 #if defined(OS_ANDROID) |
| 140 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is | 140 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is |
| 141 // not initialised, so the registry must be mocked out. | 141 // not initialised, so the registry must be mocked out. |
| 142 std::unique_ptr<WebappRegistry> webapp_registry_; | 142 std::unique_ptr<WebappRegistry> webapp_registry_; |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; | 145 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); | 147 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 #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 |