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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // Checks if we are all done, and if so, calls Notify(). | 429 // Checks if we are all done, and if so, calls Notify(). |
430 void NotifyIfDone(); | 430 void NotifyIfDone(); |
431 | 431 |
432 // Called when history deletion is done. | 432 // Called when history deletion is done. |
433 void OnHistoryDeletionDone(); | 433 void OnHistoryDeletionDone(); |
434 | 434 |
435 // Callback for when the hostname resolution cache has been cleared. | 435 // Callback for when the hostname resolution cache has been cleared. |
436 // Clears the respective waiting flag and invokes NotifyIfDone. | 436 // Clears the respective waiting flag and invokes NotifyIfDone. |
437 void OnClearedHostnameResolutionCache(); | 437 void OnClearedHostnameResolutionCache(); |
438 | 438 |
| 439 // Callback for when HTTP auth cache has been cleared. |
| 440 // Clears the respective waiting flag and invokes NotifyIfDone. |
| 441 void OnClearedHttpAuthCache(); |
| 442 |
439 // Callback for when speculative data in the network Predictor has been | 443 // Callback for when speculative data in the network Predictor has been |
440 // cleared. Clears the respective waiting flag and invokes | 444 // cleared. Clears the respective waiting flag and invokes |
441 // NotifyIfDone. | 445 // NotifyIfDone. |
442 void OnClearedNetworkPredictor(); | 446 void OnClearedNetworkPredictor(); |
443 | 447 |
444 // Callback for when network related data in ProfileIOData has been cleared. | 448 // Callback for when network related data in ProfileIOData has been cleared. |
445 // Clears the respective waiting flag and invokes NotifyIfDone. | 449 // Clears the respective waiting flag and invokes NotifyIfDone. |
446 void OnClearedNetworkingHistory(); | 450 void OnClearedNetworkingHistory(); |
447 | 451 |
448 // Callback for when the cache has been deleted. Invokes | 452 // Callback for when the cache has been deleted. Invokes |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 bool waiting_for_clear_flash_content_licenses_ = false; | 563 bool waiting_for_clear_flash_content_licenses_ = false; |
560 // Non-zero if waiting for cookies to be cleared. | 564 // Non-zero if waiting for cookies to be cleared. |
561 int waiting_for_clear_cookies_count_ = 0; | 565 int waiting_for_clear_cookies_count_ = 0; |
562 // Counts the number of plugin data tasks. Should be the number of LSO cookies | 566 // Counts the number of plugin data tasks. Should be the number of LSO cookies |
563 // to be deleted, or 1 while we're fetching LSO cookies or deleting in bulk. | 567 // to be deleted, or 1 while we're fetching LSO cookies or deleting in bulk. |
564 int waiting_for_clear_plugin_data_count_ = 0; | 568 int waiting_for_clear_plugin_data_count_ = 0; |
565 bool waiting_for_clear_domain_reliability_monitor_ = false; | 569 bool waiting_for_clear_domain_reliability_monitor_ = false; |
566 bool waiting_for_clear_form_ = false; | 570 bool waiting_for_clear_form_ = false; |
567 bool waiting_for_clear_history_ = false; | 571 bool waiting_for_clear_history_ = false; |
568 bool waiting_for_clear_hostname_resolution_cache_ = false; | 572 bool waiting_for_clear_hostname_resolution_cache_ = false; |
| 573 bool waiting_for_clear_http_auth_cache_ = false; |
569 bool waiting_for_clear_keyword_data_ = false; | 574 bool waiting_for_clear_keyword_data_ = false; |
570 bool waiting_for_clear_nacl_cache_ = false; | 575 bool waiting_for_clear_nacl_cache_ = false; |
571 bool waiting_for_clear_network_predictor_ = false; | 576 bool waiting_for_clear_network_predictor_ = false; |
572 bool waiting_for_clear_networking_history_ = false; | 577 bool waiting_for_clear_networking_history_ = false; |
573 bool waiting_for_clear_passwords_ = false; | 578 bool waiting_for_clear_passwords_ = false; |
574 bool waiting_for_clear_passwords_stats_ = false; | 579 bool waiting_for_clear_passwords_stats_ = false; |
575 bool waiting_for_clear_platform_keys_ = false; | 580 bool waiting_for_clear_platform_keys_ = false; |
576 bool waiting_for_clear_pnacl_cache_ = false; | 581 bool waiting_for_clear_pnacl_cache_ = false; |
577 #if BUILDFLAG(ANDROID_JAVA_UI) | 582 #if BUILDFLAG(ANDROID_JAVA_UI) |
578 bool waiting_for_clear_precache_history_ = false; | 583 bool waiting_for_clear_precache_history_ = false; |
(...skipping 23 matching lines...) Expand all Loading... |
602 // not initialised, so the registry must be mocked out. | 607 // not initialised, so the registry must be mocked out. |
603 std::unique_ptr<WebappRegistry> webapp_registry_; | 608 std::unique_ptr<WebappRegistry> webapp_registry_; |
604 #endif | 609 #endif |
605 | 610 |
606 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; | 611 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; |
607 | 612 |
608 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 613 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
609 }; | 614 }; |
610 | 615 |
611 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 616 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |