OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // NotifyAndDeleteIfDone. | 316 // NotifyAndDeleteIfDone. |
317 void ClearedPnaclCache(); | 317 void ClearedPnaclCache(); |
318 | 318 |
319 // Invokes ClearedPnaclCacheOn on the UI thread. | 319 // Invokes ClearedPnaclCacheOn on the UI thread. |
320 void ClearedPnaclCacheOnIOThread(); | 320 void ClearedPnaclCacheOnIOThread(); |
321 | 321 |
322 // Invoked on the IO thread to delete entries in the PNaCl translation cache. | 322 // Invoked on the IO thread to delete entries in the PNaCl translation cache. |
323 void ClearPnaclCacheOnIOThread(base::Time begin, base::Time end); | 323 void ClearPnaclCacheOnIOThread(base::Time begin, base::Time end); |
324 #endif | 324 #endif |
325 | 325 |
| 326 // Callback for when passwords for the requested time range have been cleared. |
| 327 void OnClearedPasswords(); |
| 328 |
| 329 // Removes cached affiliation data that is no longer needed by the password |
| 330 // manager. |
| 331 void TrimAffiliationCache(); |
| 332 |
326 // Callback for when Cookies has been deleted. Invokes NotifyAndDeleteIfDone. | 333 // Callback for when Cookies has been deleted. Invokes NotifyAndDeleteIfDone. |
327 void OnClearedCookies(int num_deleted); | 334 void OnClearedCookies(int num_deleted); |
328 | 335 |
329 // Invoked on the IO thread to delete cookies. | 336 // Invoked on the IO thread to delete cookies. |
330 void ClearCookiesOnIOThread(net::URLRequestContextGetter* rq_context); | 337 void ClearCookiesOnIOThread(net::URLRequestContextGetter* rq_context); |
331 | 338 |
332 // Invoked on the IO thread to delete channel IDs. | 339 // Invoked on the IO thread to delete channel IDs. |
333 void ClearChannelIDsOnIOThread( | 340 void ClearChannelIDsOnIOThread( |
334 net::URLRequestContextGetter* rq_context); | 341 net::URLRequestContextGetter* rq_context); |
335 | 342 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // Non-zero if waiting for cookies to be cleared. | 409 // Non-zero if waiting for cookies to be cleared. |
403 int waiting_for_clear_cookies_count_; | 410 int waiting_for_clear_cookies_count_; |
404 bool waiting_for_clear_domain_reliability_monitor_; | 411 bool waiting_for_clear_domain_reliability_monitor_; |
405 bool waiting_for_clear_form_; | 412 bool waiting_for_clear_form_; |
406 bool waiting_for_clear_history_; | 413 bool waiting_for_clear_history_; |
407 bool waiting_for_clear_hostname_resolution_cache_; | 414 bool waiting_for_clear_hostname_resolution_cache_; |
408 bool waiting_for_clear_keyword_data_; | 415 bool waiting_for_clear_keyword_data_; |
409 bool waiting_for_clear_nacl_cache_; | 416 bool waiting_for_clear_nacl_cache_; |
410 bool waiting_for_clear_network_predictor_; | 417 bool waiting_for_clear_network_predictor_; |
411 bool waiting_for_clear_networking_history_; | 418 bool waiting_for_clear_networking_history_; |
| 419 bool waiting_for_clear_passwords_; |
412 bool waiting_for_clear_platform_keys_; | 420 bool waiting_for_clear_platform_keys_; |
413 bool waiting_for_clear_plugin_data_; | 421 bool waiting_for_clear_plugin_data_; |
414 bool waiting_for_clear_pnacl_cache_; | 422 bool waiting_for_clear_pnacl_cache_; |
415 bool waiting_for_clear_storage_partition_data_; | 423 bool waiting_for_clear_storage_partition_data_; |
416 #if defined(ENABLE_WEBRTC) | 424 #if defined(ENABLE_WEBRTC) |
417 bool waiting_for_clear_webrtc_logs_; | 425 bool waiting_for_clear_webrtc_logs_; |
418 #endif | 426 #endif |
419 | 427 |
420 // The removal mask for the current removal operation. | 428 // The removal mask for the current removal operation. |
421 int remove_mask_; | 429 int remove_mask_; |
(...skipping 11 matching lines...) Expand all Loading... |
433 | 441 |
434 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 442 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
435 | 443 |
436 // We do not own this. | 444 // We do not own this. |
437 content::StoragePartition* storage_partition_for_testing_; | 445 content::StoragePartition* storage_partition_for_testing_; |
438 | 446 |
439 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 447 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
440 }; | 448 }; |
441 | 449 |
442 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 450 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |