OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ |
6 #define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 6 #define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <memory> | 10 #include <memory> |
9 #include <set> | 11 #include <set> |
10 | 12 |
11 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 14 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
15 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
16 #include "base/task/cancelable_task_tracker.h" | 18 #include "base/task/cancelable_task_tracker.h" |
17 #include "base/time/time.h" | 19 #include "base/time/time.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 void OnClearedNetworkingHistory(); | 184 void OnClearedNetworkingHistory(); |
183 | 185 |
184 // Callback for when the cache has been deleted. Invokes | 186 // Callback for when the cache has been deleted. Invokes |
185 // NotifyAndDeleteIfDone. | 187 // NotifyAndDeleteIfDone. |
186 void OnClearedCache(int error); | 188 void OnClearedCache(int error); |
187 | 189 |
188 // Callback for when passwords for the requested time range have been cleared. | 190 // Callback for when passwords for the requested time range have been cleared. |
189 void OnClearedPasswords(); | 191 void OnClearedPasswords(); |
190 | 192 |
191 // Callback for when Cookies has been deleted. Invokes NotifyAndDeleteIfDone. | 193 // Callback for when Cookies has been deleted. Invokes NotifyAndDeleteIfDone. |
192 void OnClearedCookies(int num_deleted); | 194 void OnClearedCookies(uint32_t num_deleted); |
193 | 195 |
194 // Invoked on the IO thread to delete cookies. | 196 // Invoked on the IO thread to delete cookies. |
195 void ClearCookiesOnIOThread( | 197 void ClearCookiesOnIOThread( |
196 const scoped_refptr<net::URLRequestContextGetter>& rq_context); | 198 const scoped_refptr<net::URLRequestContextGetter>& rq_context); |
197 | 199 |
198 // Invoked on the IO thread to delete channel IDs. | 200 // Invoked on the IO thread to delete channel IDs. |
199 void ClearChannelIDsOnIOThread( | 201 void ClearChannelIDsOnIOThread( |
200 const scoped_refptr<net::URLRequestContextGetter>& rq_context); | 202 const scoped_refptr<net::URLRequestContextGetter>& rq_context); |
201 | 203 |
202 // Callback on IO Thread when channel IDs have been deleted. Clears SSL | 204 // Callback on IO Thread when channel IDs have been deleted. Clears SSL |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 258 |
257 // Used if we need to clear history. | 259 // Used if we need to clear history. |
258 base::CancelableTaskTracker history_task_tracker_; | 260 base::CancelableTaskTracker history_task_tracker_; |
259 | 261 |
260 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; | 262 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; |
261 | 263 |
262 DISALLOW_COPY_AND_ASSIGN(IOSChromeBrowsingDataRemover); | 264 DISALLOW_COPY_AND_ASSIGN(IOSChromeBrowsingDataRemover); |
263 }; | 265 }; |
264 | 266 |
265 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 267 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |