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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 void OnClearedAutofillOriginURLs(); | 368 void OnClearedAutofillOriginURLs(); |
369 | 369 |
370 // Callback on UI thread when the storage partition related data are cleared. | 370 // Callback on UI thread when the storage partition related data are cleared. |
371 void OnClearedStoragePartitionData(); | 371 void OnClearedStoragePartitionData(); |
372 | 372 |
373 #if defined(ENABLE_WEBRTC) | 373 #if defined(ENABLE_WEBRTC) |
374 // Callback on UI thread when the WebRTC logs have been deleted. | 374 // Callback on UI thread when the WebRTC logs have been deleted. |
375 void OnClearedWebRtcLogs(); | 375 void OnClearedWebRtcLogs(); |
376 #endif | 376 #endif |
377 | 377 |
| 378 void OnClearedDomainReliabilityMonitor(); |
| 379 |
378 // Returns true if we're all done. | 380 // Returns true if we're all done. |
379 bool AllDone(); | 381 bool AllDone(); |
380 | 382 |
381 // Profile we're to remove from. | 383 // Profile we're to remove from. |
382 Profile* profile_; | 384 Profile* profile_; |
383 | 385 |
384 // 'Protected' origins are not subject to data removal. | 386 // 'Protected' origins are not subject to data removal. |
385 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_; | 387 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_; |
386 | 388 |
387 // Start time to delete from. | 389 // Start time to delete from. |
(...skipping 27 matching lines...) Expand all Loading... |
415 #endif | 417 #endif |
416 | 418 |
417 uint32 deauthorize_content_licenses_request_id_; | 419 uint32 deauthorize_content_licenses_request_id_; |
418 // True if we're waiting for various data to be deleted. | 420 // True if we're waiting for various data to be deleted. |
419 // These may only be accessed from UI thread in order to avoid races! | 421 // These may only be accessed from UI thread in order to avoid races! |
420 bool waiting_for_clear_autofill_origin_urls_; | 422 bool waiting_for_clear_autofill_origin_urls_; |
421 bool waiting_for_clear_cache_; | 423 bool waiting_for_clear_cache_; |
422 bool waiting_for_clear_content_licenses_; | 424 bool waiting_for_clear_content_licenses_; |
423 // Non-zero if waiting for cookies to be cleared. | 425 // Non-zero if waiting for cookies to be cleared. |
424 int waiting_for_clear_cookies_count_; | 426 int waiting_for_clear_cookies_count_; |
| 427 bool waiting_for_clear_domain_reliability_monitor_; |
425 bool waiting_for_clear_form_; | 428 bool waiting_for_clear_form_; |
426 bool waiting_for_clear_history_; | 429 bool waiting_for_clear_history_; |
427 bool waiting_for_clear_hostname_resolution_cache_; | 430 bool waiting_for_clear_hostname_resolution_cache_; |
428 bool waiting_for_clear_keyword_data_; | 431 bool waiting_for_clear_keyword_data_; |
429 bool waiting_for_clear_logged_in_predictor_; | 432 bool waiting_for_clear_logged_in_predictor_; |
430 bool waiting_for_clear_nacl_cache_; | 433 bool waiting_for_clear_nacl_cache_; |
431 bool waiting_for_clear_network_predictor_; | 434 bool waiting_for_clear_network_predictor_; |
432 bool waiting_for_clear_networking_history_; | 435 bool waiting_for_clear_networking_history_; |
433 bool waiting_for_clear_platform_keys_; | 436 bool waiting_for_clear_platform_keys_; |
434 bool waiting_for_clear_plugin_data_; | 437 bool waiting_for_clear_plugin_data_; |
(...skipping 20 matching lines...) Expand all Loading... |
455 | 458 |
456 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 459 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
457 | 460 |
458 // We do not own this. | 461 // We do not own this. |
459 content::StoragePartition* storage_partition_for_testing_; | 462 content::StoragePartition* storage_partition_for_testing_; |
460 | 463 |
461 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 464 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
462 }; | 465 }; |
463 | 466 |
464 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 467 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |