Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 2351113005: [Reland] Refactor WebappRegistry into a singleton instance. (Closed)
Patch Set: Fix WebappModeTest Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 #if defined(ENABLE_WEBRTC) 454 #if defined(ENABLE_WEBRTC)
455 // Callback on UI thread when the WebRTC logs have been deleted. 455 // Callback on UI thread when the WebRTC logs have been deleted.
456 void OnClearedWebRtcLogs(); 456 void OnClearedWebRtcLogs();
457 #endif 457 #endif
458 458
459 #if BUILDFLAG(ANDROID_JAVA_UI) 459 #if BUILDFLAG(ANDROID_JAVA_UI)
460 // Callback on UI thread when the precache history has been cleared. 460 // Callback on UI thread when the precache history has been cleared.
461 void OnClearedPrecacheHistory(); 461 void OnClearedPrecacheHistory();
462 462
463 // Callback on UI thread when the webapp data has been cleared.
464 void OnClearedWebappData();
465
466 // Callback on UI thread when the webapp history has been cleared.
467 void OnClearedWebappHistory();
468
469 // Callback on UI thread when the offline page data has been cleared. 463 // Callback on UI thread when the offline page data has been cleared.
470 void OnClearedOfflinePageData( 464 void OnClearedOfflinePageData(
471 offline_pages::OfflinePageModel::DeletePageResult result); 465 offline_pages::OfflinePageModel::DeletePageResult result);
472 #endif 466 #endif
473 467
474 void OnClearedDomainReliabilityMonitor(); 468 void OnClearedDomainReliabilityMonitor();
475 469
476 // Returns true if we're all done. 470 // Returns true if we're all done.
477 bool AllDone(); 471 bool AllDone();
478 472
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 bool waiting_for_clear_keyword_data_ = false; 529 bool waiting_for_clear_keyword_data_ = false;
536 bool waiting_for_clear_nacl_cache_ = false; 530 bool waiting_for_clear_nacl_cache_ = false;
537 bool waiting_for_clear_network_predictor_ = false; 531 bool waiting_for_clear_network_predictor_ = false;
538 bool waiting_for_clear_networking_history_ = false; 532 bool waiting_for_clear_networking_history_ = false;
539 bool waiting_for_clear_passwords_ = false; 533 bool waiting_for_clear_passwords_ = false;
540 bool waiting_for_clear_passwords_stats_ = false; 534 bool waiting_for_clear_passwords_stats_ = false;
541 bool waiting_for_clear_platform_keys_ = false; 535 bool waiting_for_clear_platform_keys_ = false;
542 bool waiting_for_clear_pnacl_cache_ = false; 536 bool waiting_for_clear_pnacl_cache_ = false;
543 #if BUILDFLAG(ANDROID_JAVA_UI) 537 #if BUILDFLAG(ANDROID_JAVA_UI)
544 bool waiting_for_clear_precache_history_ = false; 538 bool waiting_for_clear_precache_history_ = false;
545 bool waiting_for_clear_webapp_data_ = false;
546 bool waiting_for_clear_webapp_history_ = false;
547 bool waiting_for_clear_offline_page_data_ = false; 539 bool waiting_for_clear_offline_page_data_ = false;
548 #endif 540 #endif
549 bool waiting_for_clear_storage_partition_data_ = false; 541 bool waiting_for_clear_storage_partition_data_ = false;
550 #if defined(ENABLE_WEBRTC) 542 #if defined(ENABLE_WEBRTC)
551 bool waiting_for_clear_webrtc_logs_ = false; 543 bool waiting_for_clear_webrtc_logs_ = false;
552 #endif 544 #endif
553 bool waiting_for_clear_auto_sign_in_ = false; 545 bool waiting_for_clear_auto_sign_in_ = false;
554 546
555 // Observers of the global state and individual tasks. 547 // Observers of the global state and individual tasks.
556 base::ObserverList<Observer, true> observer_list_; 548 base::ObserverList<Observer, true> observer_list_;
(...skipping 11 matching lines...) Expand all
568 // not initialised, so the registry must be mocked out. 560 // not initialised, so the registry must be mocked out.
569 std::unique_ptr<WebappRegistry> webapp_registry_; 561 std::unique_ptr<WebappRegistry> webapp_registry_;
570 #endif 562 #endif
571 563
572 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; 564 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_;
573 565
574 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 566 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
575 }; 567 };
576 568
577 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 569 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698