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 <set> | 10 #include <set> |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 void OnClearedWebRtcLogs(); | 375 void OnClearedWebRtcLogs(); |
376 #endif | 376 #endif |
377 | 377 |
378 #if BUILDFLAG(ANDROID_JAVA_UI) | 378 #if BUILDFLAG(ANDROID_JAVA_UI) |
379 // Callback on UI thread when the precache history has been cleared. | 379 // Callback on UI thread when the precache history has been cleared. |
380 void OnClearedPrecacheHistory(); | 380 void OnClearedPrecacheHistory(); |
381 | 381 |
382 // Callback on UI thread when the webapp data has been cleared. | 382 // Callback on UI thread when the webapp data has been cleared. |
383 void OnClearedWebappData(); | 383 void OnClearedWebappData(); |
384 | 384 |
| 385 // Callback on UI thread when the webapp history has been cleared. |
| 386 void OnClearedWebappHistory(); |
| 387 |
385 // Callback on UI thread when the offline page data has been cleared. | 388 // Callback on UI thread when the offline page data has been cleared. |
386 void OnClearedOfflinePageData(); | 389 void OnClearedOfflinePageData(); |
387 #endif | 390 #endif |
388 | 391 |
389 void OnClearedDomainReliabilityMonitor(); | 392 void OnClearedDomainReliabilityMonitor(); |
390 | 393 |
391 // Returns true if we're all done. | 394 // Returns true if we're all done. |
392 bool AllDone(); | 395 bool AllDone(); |
393 | 396 |
394 // Profile we're to remove from. | 397 // Profile we're to remove from. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 bool waiting_for_clear_network_predictor_ = false; | 442 bool waiting_for_clear_network_predictor_ = false; |
440 bool waiting_for_clear_networking_history_ = false; | 443 bool waiting_for_clear_networking_history_ = false; |
441 bool waiting_for_clear_passwords_ = false; | 444 bool waiting_for_clear_passwords_ = false; |
442 bool waiting_for_clear_passwords_stats_ = false; | 445 bool waiting_for_clear_passwords_stats_ = false; |
443 bool waiting_for_clear_platform_keys_ = false; | 446 bool waiting_for_clear_platform_keys_ = false; |
444 bool waiting_for_clear_plugin_data_ = false; | 447 bool waiting_for_clear_plugin_data_ = false; |
445 bool waiting_for_clear_pnacl_cache_ = false; | 448 bool waiting_for_clear_pnacl_cache_ = false; |
446 #if BUILDFLAG(ANDROID_JAVA_UI) | 449 #if BUILDFLAG(ANDROID_JAVA_UI) |
447 bool waiting_for_clear_precache_history_ = false; | 450 bool waiting_for_clear_precache_history_ = false; |
448 bool waiting_for_clear_webapp_data_ = false; | 451 bool waiting_for_clear_webapp_data_ = false; |
| 452 bool waiting_for_clear_webapp_history_ = false; |
449 bool waiting_for_clear_offline_page_data_ = false; | 453 bool waiting_for_clear_offline_page_data_ = false; |
450 #endif | 454 #endif |
451 bool waiting_for_clear_storage_partition_data_ = false; | 455 bool waiting_for_clear_storage_partition_data_ = false; |
452 #if defined(ENABLE_WEBRTC) | 456 #if defined(ENABLE_WEBRTC) |
453 bool waiting_for_clear_webrtc_logs_ = false; | 457 bool waiting_for_clear_webrtc_logs_ = false; |
454 #endif | 458 #endif |
455 | 459 |
456 // The removal mask for the current removal operation. | 460 // The removal mask for the current removal operation. |
457 int remove_mask_ = 0; | 461 int remove_mask_ = 0; |
458 | 462 |
459 // From which types of origins should we remove data? | 463 // From which types of origins should we remove data? |
460 int origin_type_mask_ = 0; | 464 int origin_type_mask_ = 0; |
461 | 465 |
462 base::ObserverList<Observer, true> observer_list_; | 466 base::ObserverList<Observer, true> observer_list_; |
463 | 467 |
464 // Used if we need to clear history. | 468 // Used if we need to clear history. |
465 base::CancelableTaskTracker history_task_tracker_; | 469 base::CancelableTaskTracker history_task_tracker_; |
466 | 470 |
467 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 471 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
468 | 472 |
469 // We do not own this. | 473 // We do not own this. |
470 content::StoragePartition* storage_partition_for_testing_ = nullptr; | 474 content::StoragePartition* storage_partition_for_testing_ = nullptr; |
471 | 475 |
472 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; | 476 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; |
473 | 477 |
474 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 478 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
475 }; | 479 }; |
476 | 480 |
477 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 481 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |