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

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

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix Created 4 years 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 11 matching lines...) Expand all
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "chrome/common/features.h" 24 #include "chrome/common/features.h"
25 #include "components/browsing_data/core/browsing_data_utils.h" 25 #include "components/browsing_data/core/browsing_data_utils.h"
26 #include "components/content_settings/core/common/content_settings_pattern.h" 26 #include "components/content_settings/core/common/content_settings_pattern.h"
27 #include "components/content_settings/core/common/content_settings_types.h" 27 #include "components/content_settings/core/common/content_settings_types.h"
28 #include "components/keyed_service/core/keyed_service.h" 28 #include "components/keyed_service/core/keyed_service.h"
29 #include "components/offline_pages/offline_page_model.h" 29 #include "components/offline_pages/offline_page_model.h"
30 #include "components/prefs/pref_member.h" 30 #include "components/prefs/pref_member.h"
31 #include "components/search_engines/template_url_service.h" 31 #include "components/search_engines/template_url_service.h"
32 #include "media/media_features.h"
32 #include "ppapi/features/features.h" 33 #include "ppapi/features/features.h"
33 #include "storage/common/quota/quota_types.h" 34 #include "storage/common/quota/quota_types.h"
34 #include "url/gurl.h" 35 #include "url/gurl.h"
35 36
36 #if BUILDFLAG(ENABLE_PLUGINS) 37 #if BUILDFLAG(ENABLE_PLUGINS)
37 #include "chrome/browser/pepper_flash_settings_manager.h" 38 #include "chrome/browser/pepper_flash_settings_manager.h"
38 #endif 39 #endif
39 40
40 #if defined(OS_CHROMEOS) 41 #if defined(OS_CHROMEOS)
41 #include "chromeos/dbus/dbus_method_call_status.h" 42 #include "chromeos/dbus/dbus_method_call_status.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // Callback from the above method. 449 // Callback from the above method.
449 void OnClearedFormData(); 450 void OnClearedFormData();
450 451
451 // Callback for when the Autofill profile and credit card origin URLs have 452 // Callback for when the Autofill profile and credit card origin URLs have
452 // been deleted. 453 // been deleted.
453 void OnClearedAutofillOriginURLs(); 454 void OnClearedAutofillOriginURLs();
454 455
455 // Callback on UI thread when the storage partition related data are cleared. 456 // Callback on UI thread when the storage partition related data are cleared.
456 void OnClearedStoragePartitionData(); 457 void OnClearedStoragePartitionData();
457 458
458 #if defined(ENABLE_WEBRTC) 459 #if BUILDFLAG(ENABLE_WEBRTC)
459 // Callback on UI thread when the WebRTC logs have been deleted. 460 // Callback on UI thread when the WebRTC logs have been deleted.
460 void OnClearedWebRtcLogs(); 461 void OnClearedWebRtcLogs();
461 #endif 462 #endif
462 463
463 #if BUILDFLAG(ANDROID_JAVA_UI) 464 #if BUILDFLAG(ANDROID_JAVA_UI)
464 // Callback on UI thread when the precache history has been cleared. 465 // Callback on UI thread when the precache history has been cleared.
465 void OnClearedPrecacheHistory(); 466 void OnClearedPrecacheHistory();
466 467
467 // Callback on UI thread when the offline page data has been cleared. 468 // Callback on UI thread when the offline page data has been cleared.
468 void OnClearedOfflinePageData( 469 void OnClearedOfflinePageData(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 bool waiting_for_clear_networking_history_ = false; 537 bool waiting_for_clear_networking_history_ = false;
537 bool waiting_for_clear_passwords_ = false; 538 bool waiting_for_clear_passwords_ = false;
538 bool waiting_for_clear_passwords_stats_ = false; 539 bool waiting_for_clear_passwords_stats_ = false;
539 bool waiting_for_clear_platform_keys_ = false; 540 bool waiting_for_clear_platform_keys_ = false;
540 bool waiting_for_clear_pnacl_cache_ = false; 541 bool waiting_for_clear_pnacl_cache_ = false;
541 #if BUILDFLAG(ANDROID_JAVA_UI) 542 #if BUILDFLAG(ANDROID_JAVA_UI)
542 bool waiting_for_clear_precache_history_ = false; 543 bool waiting_for_clear_precache_history_ = false;
543 bool waiting_for_clear_offline_page_data_ = false; 544 bool waiting_for_clear_offline_page_data_ = false;
544 #endif 545 #endif
545 bool waiting_for_clear_storage_partition_data_ = false; 546 bool waiting_for_clear_storage_partition_data_ = false;
546 #if defined(ENABLE_WEBRTC) 547 #if BUILDFLAG(ENABLE_WEBRTC)
547 bool waiting_for_clear_webrtc_logs_ = false; 548 bool waiting_for_clear_webrtc_logs_ = false;
548 #endif 549 #endif
549 bool waiting_for_clear_auto_sign_in_ = false; 550 bool waiting_for_clear_auto_sign_in_ = false;
550 551
551 // Observers of the global state and individual tasks. 552 // Observers of the global state and individual tasks.
552 base::ObserverList<Observer, true> observer_list_; 553 base::ObserverList<Observer, true> observer_list_;
553 554
554 // Used if we need to clear history. 555 // Used if we need to clear history.
555 base::CancelableTaskTracker history_task_tracker_; 556 base::CancelableTaskTracker history_task_tracker_;
556 557
557 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_; 558 std::unique_ptr<TemplateURLService::Subscription> template_url_sub_;
558 559
559 // We do not own this. 560 // We do not own this.
560 content::StoragePartition* storage_partition_for_testing_ = nullptr; 561 content::StoragePartition* storage_partition_for_testing_ = nullptr;
561 562
562 #if BUILDFLAG(ANDROID_JAVA_UI) 563 #if BUILDFLAG(ANDROID_JAVA_UI)
563 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is 564 // WebappRegistry makes calls across the JNI. In unit tests, the Java side is
564 // not initialised, so the registry must be mocked out. 565 // not initialised, so the registry must be mocked out.
565 std::unique_ptr<WebappRegistry> webapp_registry_; 566 std::unique_ptr<WebappRegistry> webapp_registry_;
566 #endif 567 #endif
567 568
568 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; 569 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_;
569 570
570 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 571 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
571 }; 572 };
572 573
573 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 574 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.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