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

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

Issue 2351113005: [Reland] Refactor WebappRegistry into a singleton instance. (Closed)
Patch Set: Checkstyle import order has changed overnight argh 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 #if defined(ENABLE_WEBRTC) 457 #if defined(ENABLE_WEBRTC)
458 // Callback on UI thread when the WebRTC logs have been deleted. 458 // Callback on UI thread when the WebRTC logs have been deleted.
459 void OnClearedWebRtcLogs(); 459 void OnClearedWebRtcLogs();
460 #endif 460 #endif
461 461
462 #if BUILDFLAG(ANDROID_JAVA_UI) 462 #if BUILDFLAG(ANDROID_JAVA_UI)
463 // Callback on UI thread when the precache history has been cleared. 463 // Callback on UI thread when the precache history has been cleared.
464 void OnClearedPrecacheHistory(); 464 void OnClearedPrecacheHistory();
465 465
466 // Callback on UI thread when the webapp data has been cleared.
467 void OnClearedWebappData();
468
469 // Callback on UI thread when the webapp history has been cleared.
470 void OnClearedWebappHistory();
471
472 // Callback on UI thread when the offline page data has been cleared. 466 // Callback on UI thread when the offline page data has been cleared.
473 void OnClearedOfflinePageData( 467 void OnClearedOfflinePageData(
474 offline_pages::OfflinePageModel::DeletePageResult result); 468 offline_pages::OfflinePageModel::DeletePageResult result);
475 #endif 469 #endif
476 470
477 void OnClearedDomainReliabilityMonitor(); 471 void OnClearedDomainReliabilityMonitor();
478 472
479 // Returns true if we're all done. 473 // Returns true if we're all done.
480 bool AllDone(); 474 bool AllDone();
481 475
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 bool waiting_for_clear_keyword_data_ = false; 532 bool waiting_for_clear_keyword_data_ = false;
539 bool waiting_for_clear_nacl_cache_ = false; 533 bool waiting_for_clear_nacl_cache_ = false;
540 bool waiting_for_clear_network_predictor_ = false; 534 bool waiting_for_clear_network_predictor_ = false;
541 bool waiting_for_clear_networking_history_ = false; 535 bool waiting_for_clear_networking_history_ = false;
542 bool waiting_for_clear_passwords_ = false; 536 bool waiting_for_clear_passwords_ = false;
543 bool waiting_for_clear_passwords_stats_ = false; 537 bool waiting_for_clear_passwords_stats_ = false;
544 bool waiting_for_clear_platform_keys_ = false; 538 bool waiting_for_clear_platform_keys_ = false;
545 bool waiting_for_clear_pnacl_cache_ = false; 539 bool waiting_for_clear_pnacl_cache_ = false;
546 #if BUILDFLAG(ANDROID_JAVA_UI) 540 #if BUILDFLAG(ANDROID_JAVA_UI)
547 bool waiting_for_clear_precache_history_ = false; 541 bool waiting_for_clear_precache_history_ = false;
548 bool waiting_for_clear_webapp_data_ = false;
549 bool waiting_for_clear_webapp_history_ = false;
550 bool waiting_for_clear_offline_page_data_ = false; 542 bool waiting_for_clear_offline_page_data_ = false;
551 #endif 543 #endif
552 bool waiting_for_clear_storage_partition_data_ = false; 544 bool waiting_for_clear_storage_partition_data_ = false;
553 #if defined(ENABLE_WEBRTC) 545 #if defined(ENABLE_WEBRTC)
554 bool waiting_for_clear_webrtc_logs_ = false; 546 bool waiting_for_clear_webrtc_logs_ = false;
555 #endif 547 #endif
556 bool waiting_for_clear_auto_sign_in_ = false; 548 bool waiting_for_clear_auto_sign_in_ = false;
557 549
558 // Observers of the global state and individual tasks. 550 // Observers of the global state and individual tasks.
559 base::ObserverList<Observer, true> observer_list_; 551 base::ObserverList<Observer, true> observer_list_;
(...skipping 11 matching lines...) Expand all
571 // not initialised, so the registry must be mocked out. 563 // not initialised, so the registry must be mocked out.
572 std::unique_ptr<WebappRegistry> webapp_registry_; 564 std::unique_ptr<WebappRegistry> webapp_registry_;
573 #endif 565 #endif
574 566
575 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; 567 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_;
576 568
577 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 569 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
578 }; 570 };
579 571
580 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 572 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/webapps/webapp_registry.cc ('k') | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698