Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Rebase to master Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Removes Chrome-specific data. 76 // Removes Chrome-specific data.
77 void RemoveEmbedderData( 77 void RemoveEmbedderData(
78 const base::Time& delete_begin, 78 const base::Time& delete_begin,
79 const base::Time& delete_end, 79 const base::Time& delete_end,
80 int remove_mask, 80 int remove_mask,
81 const BrowsingDataFilterBuilder& filter_builder, 81 const BrowsingDataFilterBuilder& filter_builder,
82 int origin_type_mask, 82 int origin_type_mask,
83 const base::Closure& callback) override; 83 const base::Closure& callback) override;
84 84
85 #if BUILDFLAG(ANDROID_JAVA_UI) 85 #if defined(OS_ANDROID)
86 void OverrideWebappRegistryForTesting( 86 void OverrideWebappRegistryForTesting(
87 std::unique_ptr<WebappRegistry> webapp_registry); 87 std::unique_ptr<WebappRegistry> webapp_registry);
88 #endif 88 #endif
89 89
90 private: 90 private:
91 // If AllDone(), calls the callback provided in RemoveEmbedderData(). 91 // If AllDone(), calls the callback provided in RemoveEmbedderData().
92 void NotifyIfDone(); 92 void NotifyIfDone();
93 93
94 // Whether there are no running deletion tasks. 94 // Whether there are no running deletion tasks.
95 bool AllDone(); 95 bool AllDone();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #if !defined(DISABLE_NACL) 140 #if !defined(DISABLE_NACL)
141 SubTask clear_nacl_cache_; 141 SubTask clear_nacl_cache_;
142 SubTask clear_pnacl_cache_; 142 SubTask clear_pnacl_cache_;
143 #endif 143 #endif
144 SubTask clear_hostname_resolution_cache_; 144 SubTask clear_hostname_resolution_cache_;
145 SubTask clear_network_predictor_; 145 SubTask clear_network_predictor_;
146 SubTask clear_networking_history_; 146 SubTask clear_networking_history_;
147 SubTask clear_passwords_; 147 SubTask clear_passwords_;
148 SubTask clear_passwords_stats_; 148 SubTask clear_passwords_stats_;
149 SubTask clear_platform_keys_; 149 SubTask clear_platform_keys_;
150 #if BUILDFLAG(ANDROID_JAVA_UI) 150 #if defined(OS_ANDROID)
151 SubTask clear_precache_history_; 151 SubTask clear_precache_history_;
152 SubTask clear_offline_page_data_; 152 SubTask clear_offline_page_data_;
153 #endif 153 #endif
154 154
155 #if BUILDFLAG(ENABLE_WEBRTC) 155 #if BUILDFLAG(ENABLE_WEBRTC)
156 SubTask clear_webrtc_logs_; 156 SubTask clear_webrtc_logs_;
157 #endif 157 #endif
158 SubTask clear_auto_sign_in_; 158 SubTask clear_auto_sign_in_;
159 159
160 #if BUILDFLAG(ENABLE_PLUGINS) 160 #if BUILDFLAG(ENABLE_PLUGINS)
161 uint32_t deauthorize_flash_content_licenses_request_id_ = 0; 161 uint32_t deauthorize_flash_content_licenses_request_id_ = 0;
162 162
163 // Used to deauthorize content licenses for Pepper Flash. 163 // Used to deauthorize content licenses for Pepper Flash.
164 std::unique_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_; 164 std::unique_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_;
165 #endif 165 #endif
166 166
167 // Used if we need to clear history. 167 // Used if we need to clear history.
168 base::CancelableTaskTracker history_task_tracker_; 168 base::CancelableTaskTracker history_task_tracker_;
169 169
170 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; 170 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_;
171 171
172 #if BUILDFLAG(ANDROID_JAVA_UI) 172 #if defined(OS_ANDROID)
173 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is 173 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is
174 // not initialised, so the registry must be mocked out. 174 // not initialised, so the registry must be mocked out.
175 std::unique_ptr<WebappRegistry> webapp_registry_; 175 std::unique_ptr<WebappRegistry> webapp_registry_;
176 #endif 176 #endif
177 177
178 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; 178 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_;
179 179
180 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); 180 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate);
181 }; 181 };
182 182
183 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ 183 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698