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