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

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

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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_COOKIES_TREE_MODEL_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
6 #define CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
7 7
8 // TODO(viettrungluu): This header file #includes far too much and has too much 8 // TODO(viettrungluu): This header file #includes far too much and has too much
9 // inline code (which shouldn't be inline). 9 // inline code (which shouldn't be inline).
10 10
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" 22 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
23 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h" 23 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h"
24 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 24 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
25 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" 25 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
26 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" 26 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
27 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 27 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
28 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" 28 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
29 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" 29 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h"
30 #include "chrome/browser/browsing_data/local_data_container.h" 30 #include "chrome/browser/browsing_data/local_data_container.h"
31 #include "components/content_settings/core/common/content_settings.h" 31 #include "components/content_settings/core/common/content_settings.h"
32 #include "extensions/features/features.h"
32 #include "net/ssl/channel_id_store.h" 33 #include "net/ssl/channel_id_store.h"
33 #include "ui/base/models/tree_node_model.h" 34 #include "ui/base/models/tree_node_model.h"
34 35
35 class BrowsingDataChannelIDHelper; 36 class BrowsingDataChannelIDHelper;
36 class BrowsingDataCookieHelper; 37 class BrowsingDataCookieHelper;
37 class CookiesTreeModel; 38 class CookiesTreeModel;
38 class CookieTreeAppCacheNode; 39 class CookieTreeAppCacheNode;
39 class CookieTreeAppCachesNode; 40 class CookieTreeAppCachesNode;
40 class CookieTreeCacheStorageNode; 41 class CookieTreeCacheStorageNode;
41 class CookieTreeCacheStoragesNode; 42 class CookieTreeCacheStoragesNode;
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // CookiesTreeModel methods: 787 // CookiesTreeModel methods:
787 void DeleteAllStoredObjects(); 788 void DeleteAllStoredObjects();
788 789
789 // Deletes a specific node in the tree, identified by |cookie_node|, and its 790 // Deletes a specific node in the tree, identified by |cookie_node|, and its
790 // subtree. 791 // subtree.
791 void DeleteCookieNode(CookieTreeNode* cookie_node); 792 void DeleteCookieNode(CookieTreeNode* cookie_node);
792 793
793 // Filter the origins to only display matched results. 794 // Filter the origins to only display matched results.
794 void UpdateSearchResults(const base::string16& filter); 795 void UpdateSearchResults(const base::string16& filter);
795 796
796 #if defined(ENABLE_EXTENSIONS) 797 #if BUILDFLAG(ENABLE_EXTENSIONS)
797 // Returns the set of extensions which protect the data item represented by 798 // Returns the set of extensions which protect the data item represented by
798 // this node from deletion. 799 // this node from deletion.
799 // Returns nullptr if the node doesn't represent a protected data item or the 800 // Returns nullptr if the node doesn't represent a protected data item or the
800 // special storage policy is nullptr. 801 // special storage policy is nullptr.
801 const extensions::ExtensionSet* ExtensionsProtectingNode( 802 const extensions::ExtensionSet* ExtensionsProtectingNode(
802 const CookieTreeNode& cookie_node); 803 const CookieTreeNode& cookie_node);
803 #endif 804 #endif
804 805
805 // Manages CookiesTreeModel::Observers. This will also call 806 // Manages CookiesTreeModel::Observers. This will also call
806 // TreeNodeModel::AddObserver so that it gets all the proper notifications. 807 // TreeNodeModel::AddObserver so that it gets all the proper notifications.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 LocalDataContainer* container, 898 LocalDataContainer* container,
898 ScopedBatchUpdateNotifier* notifier, 899 ScopedBatchUpdateNotifier* notifier,
899 const base::string16& filter); 900 const base::string16& filter);
900 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container, 901 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container,
901 ScopedBatchUpdateNotifier* notifier, 902 ScopedBatchUpdateNotifier* notifier,
902 const base::string16& filter); 903 const base::string16& filter);
903 void PopulateMediaLicenseInfoWithFilter(LocalDataContainer* container, 904 void PopulateMediaLicenseInfoWithFilter(LocalDataContainer* container,
904 ScopedBatchUpdateNotifier* notifier, 905 ScopedBatchUpdateNotifier* notifier,
905 const base::string16& filter); 906 const base::string16& filter);
906 907
907 #if defined(ENABLE_EXTENSIONS) 908 #if BUILDFLAG(ENABLE_EXTENSIONS)
908 // The extension special storage policy; see ExtensionsProtectingNode() above. 909 // The extension special storage policy; see ExtensionsProtectingNode() above.
909 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_; 910 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_;
910 #endif 911 #endif
911 912
912 // Map of app ids to LocalDataContainer objects to use when retrieving 913 // Map of app ids to LocalDataContainer objects to use when retrieving
913 // locally stored data. 914 // locally stored data.
914 std::unique_ptr<LocalDataContainer> data_container_; 915 std::unique_ptr<LocalDataContainer> data_container_;
915 916
916 // The CookiesTreeModel maintains a separate list of observers that are 917 // The CookiesTreeModel maintains a separate list of observers that are
917 // specifically of the type CookiesTreeModel::Observer. 918 // specifically of the type CookiesTreeModel::Observer.
918 base::ObserverList<Observer> cookies_observer_list_; 919 base::ObserverList<Observer> cookies_observer_list_;
919 920
920 // Keeps track of how many batches the consumer of this class says it is going 921 // Keeps track of how many batches the consumer of this class says it is going
921 // to send. 922 // to send.
922 int batches_expected_ = 0; 923 int batches_expected_ = 0;
923 924
924 // Keeps track of how many batches we've seen. 925 // Keeps track of how many batches we've seen.
925 int batches_seen_ = 0; 926 int batches_seen_ = 0;
926 927
927 // Counts how many batches have started already. If this is non-zero and lower 928 // Counts how many batches have started already. If this is non-zero and lower
928 // than batches_ended_, then this model is still batching updates. 929 // than batches_ended_, then this model is still batching updates.
929 int batches_started_ = 0; 930 int batches_started_ = 0;
930 931
931 // Counts how many batches have finished. 932 // Counts how many batches have finished.
932 int batches_ended_ = 0; 933 int batches_ended_ = 0;
933 }; 934 };
934 935
935 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 936 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover_unittest.cc ('k') | chrome/browser/browsing_data/cookies_tree_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698