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

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

Issue 1297093002: Cache Storage API: Hook up to chrome://settings/cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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_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
11 #include <list> 11 #include <list>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" 20 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
21 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h"
21 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 22 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
22 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" 23 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
23 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" 24 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
24 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 25 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
25 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" 26 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
26 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" 27 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h"
27 #include "chrome/browser/browsing_data/local_data_container.h" 28 #include "chrome/browser/browsing_data/local_data_container.h"
28 #include "components/content_settings/core/common/content_settings.h" 29 #include "components/content_settings/core/common/content_settings.h"
29 #include "net/ssl/channel_id_store.h" 30 #include "net/ssl/channel_id_store.h"
30 #include "ui/base/models/tree_node_model.h" 31 #include "ui/base/models/tree_node_model.h"
31 32
32 class BrowsingDataChannelIDHelper; 33 class BrowsingDataChannelIDHelper;
33 class BrowsingDataCookieHelper; 34 class BrowsingDataCookieHelper;
34 class CookiesTreeModel; 35 class CookiesTreeModel;
35 class CookieTreeAppCacheNode; 36 class CookieTreeAppCacheNode;
36 class CookieTreeAppCachesNode; 37 class CookieTreeAppCachesNode;
38 class CookieTreeCacheStorageNode;
39 class CookieTreeCacheStoragesNode;
37 class CookieTreeChannelIDNode; 40 class CookieTreeChannelIDNode;
38 class CookieTreeChannelIDsNode; 41 class CookieTreeChannelIDsNode;
39 class CookieTreeCookieNode; 42 class CookieTreeCookieNode;
40 class CookieTreeCookiesNode; 43 class CookieTreeCookiesNode;
41 class CookieTreeDatabaseNode; 44 class CookieTreeDatabaseNode;
42 class CookieTreeDatabasesNode; 45 class CookieTreeDatabasesNode;
43 class CookieTreeFileSystemNode; 46 class CookieTreeFileSystemNode;
44 class CookieTreeFileSystemsNode; 47 class CookieTreeFileSystemsNode;
45 class CookieTreeFlashLSONode; 48 class CookieTreeFlashLSONode;
46 class CookieTreeHostNode; 49 class CookieTreeHostNode;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 TYPE_APPCACHE, // This is used for CookieTreeAppCacheNode. 97 TYPE_APPCACHE, // This is used for CookieTreeAppCacheNode.
95 TYPE_INDEXED_DBS, // This is used for CookieTreeIndexedDBsNode. 98 TYPE_INDEXED_DBS, // This is used for CookieTreeIndexedDBsNode.
96 TYPE_INDEXED_DB, // This is used for CookieTreeIndexedDBNode. 99 TYPE_INDEXED_DB, // This is used for CookieTreeIndexedDBNode.
97 TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode. 100 TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode.
98 TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode. 101 TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode.
99 TYPE_QUOTA, // This is used for CookieTreeQuotaNode. 102 TYPE_QUOTA, // This is used for CookieTreeQuotaNode.
100 TYPE_CHANNEL_IDS, // Used for CookieTreeChannelIDsNode. 103 TYPE_CHANNEL_IDS, // Used for CookieTreeChannelIDsNode.
101 TYPE_CHANNEL_ID, // Used for CookieTreeChannelIDNode. 104 TYPE_CHANNEL_ID, // Used for CookieTreeChannelIDNode.
102 TYPE_SERVICE_WORKERS, // This is used for CookieTreeServiceWorkersNode. 105 TYPE_SERVICE_WORKERS, // This is used for CookieTreeServiceWorkersNode.
103 TYPE_SERVICE_WORKER, // This is used for CookieTreeServiceWorkerNode. 106 TYPE_SERVICE_WORKER, // This is used for CookieTreeServiceWorkerNode.
107 TYPE_CACHE_STORAGES, // This is used for CookieTreeCacheStoragesNode.
108 TYPE_CACHE_STORAGE, // This is used for CookieTreeCacheStorageNode.
104 TYPE_FLASH_LSO, // This is used for CookieTreeFlashLSONode. 109 TYPE_FLASH_LSO, // This is used for CookieTreeFlashLSONode.
105 }; 110 };
106 111
107 DetailedInfo(); 112 DetailedInfo();
108 ~DetailedInfo(); 113 ~DetailedInfo();
109 114
110 DetailedInfo& Init(NodeType type); 115 DetailedInfo& Init(NodeType type);
111 DetailedInfo& InitHost(); 116 DetailedInfo& InitHost();
112 DetailedInfo& InitCookie(const net::CanonicalCookie* cookie); 117 DetailedInfo& InitCookie(const net::CanonicalCookie* cookie);
113 DetailedInfo& InitDatabase( 118 DetailedInfo& InitDatabase(
114 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info); 119 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info);
115 DetailedInfo& InitLocalStorage( 120 DetailedInfo& InitLocalStorage(
116 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 121 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
117 local_storage_info); 122 local_storage_info);
118 DetailedInfo& InitSessionStorage( 123 DetailedInfo& InitSessionStorage(
119 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 124 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
120 session_storage_info); 125 session_storage_info);
121 DetailedInfo& InitAppCache(const GURL& origin, 126 DetailedInfo& InitAppCache(const GURL& origin,
122 const content::AppCacheInfo* appcache_info); 127 const content::AppCacheInfo* appcache_info);
123 DetailedInfo& InitIndexedDB( 128 DetailedInfo& InitIndexedDB(
124 const content::IndexedDBInfo* indexed_db_info); 129 const content::IndexedDBInfo* indexed_db_info);
125 DetailedInfo& InitFileSystem( 130 DetailedInfo& InitFileSystem(
126 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info); 131 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info);
127 DetailedInfo& InitQuota( 132 DetailedInfo& InitQuota(
128 const BrowsingDataQuotaHelper::QuotaInfo* quota_info); 133 const BrowsingDataQuotaHelper::QuotaInfo* quota_info);
129 DetailedInfo& InitChannelID( 134 DetailedInfo& InitChannelID(
130 const net::ChannelIDStore::ChannelID* channel_id); 135 const net::ChannelIDStore::ChannelID* channel_id);
131 DetailedInfo& InitServiceWorker( 136 DetailedInfo& InitServiceWorker(
132 const content::ServiceWorkerUsageInfo* service_worker_info); 137 const content::ServiceWorkerUsageInfo* service_worker_info);
138 DetailedInfo& InitCacheStorage(
139 const content::CacheStorageUsageInfo* cache_storage_info);
133 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain); 140 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain);
134 141
135 NodeType node_type; 142 NodeType node_type;
136 GURL origin; 143 GURL origin;
137 const net::CanonicalCookie* cookie; 144 const net::CanonicalCookie* cookie;
138 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info; 145 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info;
139 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info; 146 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info;
140 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 147 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
141 session_storage_info; 148 session_storage_info;
142 const content::AppCacheInfo* appcache_info; 149 const content::AppCacheInfo* appcache_info;
143 const content::IndexedDBInfo* indexed_db_info; 150 const content::IndexedDBInfo* indexed_db_info;
144 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info; 151 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info;
145 const BrowsingDataQuotaHelper::QuotaInfo* quota_info; 152 const BrowsingDataQuotaHelper::QuotaInfo* quota_info;
146 const net::ChannelIDStore::ChannelID* channel_id; 153 const net::ChannelIDStore::ChannelID* channel_id;
147 const content::ServiceWorkerUsageInfo* service_worker_info; 154 const content::ServiceWorkerUsageInfo* service_worker_info;
155 const content::CacheStorageUsageInfo* cache_storage_info;
148 std::string flash_lso_domain; 156 std::string flash_lso_domain;
149 }; 157 };
150 158
151 CookieTreeNode() {} 159 CookieTreeNode() {}
152 explicit CookieTreeNode(const base::string16& title) 160 explicit CookieTreeNode(const base::string16& title)
153 : ui::TreeNode<CookieTreeNode>(title) {} 161 : ui::TreeNode<CookieTreeNode>(title) {}
154 ~CookieTreeNode() override {} 162 ~CookieTreeNode() override {}
155 163
156 // Delete backend storage for this node, and any children nodes. (E.g. delete 164 // Delete backend storage for this node, and any children nodes. (E.g. delete
157 // the cookie from CookieMonster, clear the database, and so forth.) 165 // the cookie from CookieMonster, clear the database, and so forth.)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // CookieTreeHostNode methods: 213 // CookieTreeHostNode methods:
206 CookieTreeCookiesNode* GetOrCreateCookiesNode(); 214 CookieTreeCookiesNode* GetOrCreateCookiesNode();
207 CookieTreeDatabasesNode* GetOrCreateDatabasesNode(); 215 CookieTreeDatabasesNode* GetOrCreateDatabasesNode();
208 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode(); 216 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode();
209 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode(); 217 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode();
210 CookieTreeAppCachesNode* GetOrCreateAppCachesNode(); 218 CookieTreeAppCachesNode* GetOrCreateAppCachesNode();
211 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode(); 219 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode();
212 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode(); 220 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode();
213 CookieTreeChannelIDsNode* GetOrCreateChannelIDsNode(); 221 CookieTreeChannelIDsNode* GetOrCreateChannelIDsNode();
214 CookieTreeServiceWorkersNode* GetOrCreateServiceWorkersNode(); 222 CookieTreeServiceWorkersNode* GetOrCreateServiceWorkersNode();
223 CookieTreeCacheStoragesNode* GetOrCreateCacheStoragesNode();
215 CookieTreeQuotaNode* UpdateOrCreateQuotaNode( 224 CookieTreeQuotaNode* UpdateOrCreateQuotaNode(
216 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info); 225 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info);
217 CookieTreeFlashLSONode* GetOrCreateFlashLSONode(const std::string& domain); 226 CookieTreeFlashLSONode* GetOrCreateFlashLSONode(const std::string& domain);
218 227
219 std::string canonicalized_host() const { return canonicalized_host_; } 228 std::string canonicalized_host() const { return canonicalized_host_; }
220 229
221 // Creates an content exception for this origin of type 230 // Creates an content exception for this origin of type
222 // CONTENT_SETTINGS_TYPE_COOKIES. 231 // CONTENT_SETTINGS_TYPE_COOKIES.
223 void CreateContentException(content_settings::CookieSettings* cookie_settings, 232 void CreateContentException(content_settings::CookieSettings* cookie_settings,
224 ContentSetting setting) const; 233 ContentSetting setting) const;
(...skipping 12 matching lines...) Expand all
237 CookieTreeCookiesNode* cookies_child_; 246 CookieTreeCookiesNode* cookies_child_;
238 CookieTreeDatabasesNode* databases_child_; 247 CookieTreeDatabasesNode* databases_child_;
239 CookieTreeLocalStoragesNode* local_storages_child_; 248 CookieTreeLocalStoragesNode* local_storages_child_;
240 CookieTreeSessionStoragesNode* session_storages_child_; 249 CookieTreeSessionStoragesNode* session_storages_child_;
241 CookieTreeAppCachesNode* appcaches_child_; 250 CookieTreeAppCachesNode* appcaches_child_;
242 CookieTreeIndexedDBsNode* indexed_dbs_child_; 251 CookieTreeIndexedDBsNode* indexed_dbs_child_;
243 CookieTreeFileSystemsNode* file_systems_child_; 252 CookieTreeFileSystemsNode* file_systems_child_;
244 CookieTreeQuotaNode* quota_child_; 253 CookieTreeQuotaNode* quota_child_;
245 CookieTreeChannelIDsNode* channel_ids_child_; 254 CookieTreeChannelIDsNode* channel_ids_child_;
246 CookieTreeServiceWorkersNode* service_workers_child_; 255 CookieTreeServiceWorkersNode* service_workers_child_;
256 CookieTreeCacheStoragesNode* cache_storages_child_;
247 CookieTreeFlashLSONode* flash_lso_child_; 257 CookieTreeFlashLSONode* flash_lso_child_;
248 258
249 // The URL for which this node was initially created. 259 // The URL for which this node was initially created.
250 GURL url_; 260 GURL url_;
251 261
252 std::string canonicalized_host_; 262 std::string canonicalized_host_;
253 263
254 DISALLOW_COPY_AND_ASSIGN(CookieTreeHostNode); 264 DISALLOW_COPY_AND_ASSIGN(CookieTreeHostNode);
255 }; 265 };
256 266
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 DetailedInfo GetDetailedInfo() const override; 618 DetailedInfo GetDetailedInfo() const override;
609 619
610 void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) { 620 void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) {
611 AddChildSortedByTitle(child); 621 AddChildSortedByTitle(child);
612 } 622 }
613 623
614 private: 624 private:
615 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkersNode); 625 DISALLOW_COPY_AND_ASSIGN(CookieTreeServiceWorkersNode);
616 }; 626 };
617 627
628 // CookieTreeCacheStorageNode -----------------------------------------------
629 class CookieTreeCacheStorageNode : public CookieTreeNode {
630 public:
631 // cache_storage_info should remain valid at least as long as the
632 // CookieTreeCacheStorageNode is valid.
633 explicit CookieTreeCacheStorageNode(
634 std::list<content::CacheStorageUsageInfo>::iterator cache_storage_info);
635 ~CookieTreeCacheStorageNode() override;
636
637 // CookieTreeNode methods:
638 void DeleteStoredObjects() override;
639 DetailedInfo GetDetailedInfo() const override;
640
641 private:
642 // cache_storage_info_ is expected to remain valid as long as the
643 // CookieTreeCacheStorageNode is valid.
644 std::list<content::CacheStorageUsageInfo>::iterator cache_storage_info_;
645
646 DISALLOW_COPY_AND_ASSIGN(CookieTreeCacheStorageNode);
647 };
648
649 class CookieTreeCacheStoragesNode : public CookieTreeNode {
650 public:
651 CookieTreeCacheStoragesNode();
652 ~CookieTreeCacheStoragesNode() override;
653
654 DetailedInfo GetDetailedInfo() const override;
655
656 void AddCacheStorageNode(CookieTreeCacheStorageNode* child) {
657 AddChildSortedByTitle(child);
658 }
659
660 private:
661 DISALLOW_COPY_AND_ASSIGN(CookieTreeCacheStoragesNode);
662 };
663
618 // CookieTreeFlashLSONode ---------------------------------------------------- 664 // CookieTreeFlashLSONode ----------------------------------------------------
619 class CookieTreeFlashLSONode : public CookieTreeNode { 665 class CookieTreeFlashLSONode : public CookieTreeNode {
620 public: 666 public:
621 explicit CookieTreeFlashLSONode(const std::string& domain); 667 explicit CookieTreeFlashLSONode(const std::string& domain);
622 ~CookieTreeFlashLSONode() override; 668 ~CookieTreeFlashLSONode() override;
623 669
624 // CookieTreeNode methods: 670 // CookieTreeNode methods:
625 void DeleteStoredObjects() override; 671 void DeleteStoredObjects() override;
626 DetailedInfo GetDetailedInfo() const override; 672 DetailedInfo GetDetailedInfo() const override;
627 673
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 void PopulateAppCacheInfo(LocalDataContainer* container); 758 void PopulateAppCacheInfo(LocalDataContainer* container);
713 void PopulateCookieInfo(LocalDataContainer* container); 759 void PopulateCookieInfo(LocalDataContainer* container);
714 void PopulateDatabaseInfo(LocalDataContainer* container); 760 void PopulateDatabaseInfo(LocalDataContainer* container);
715 void PopulateLocalStorageInfo(LocalDataContainer* container); 761 void PopulateLocalStorageInfo(LocalDataContainer* container);
716 void PopulateSessionStorageInfo(LocalDataContainer* container); 762 void PopulateSessionStorageInfo(LocalDataContainer* container);
717 void PopulateIndexedDBInfo(LocalDataContainer* container); 763 void PopulateIndexedDBInfo(LocalDataContainer* container);
718 void PopulateFileSystemInfo(LocalDataContainer* container); 764 void PopulateFileSystemInfo(LocalDataContainer* container);
719 void PopulateQuotaInfo(LocalDataContainer* container); 765 void PopulateQuotaInfo(LocalDataContainer* container);
720 void PopulateChannelIDInfo(LocalDataContainer* container); 766 void PopulateChannelIDInfo(LocalDataContainer* container);
721 void PopulateServiceWorkerUsageInfo(LocalDataContainer* container); 767 void PopulateServiceWorkerUsageInfo(LocalDataContainer* container);
768 void PopulateCacheStorageUsageInfo(LocalDataContainer* container);
722 void PopulateFlashLSOInfo(LocalDataContainer* container); 769 void PopulateFlashLSOInfo(LocalDataContainer* container);
723 770
724 BrowsingDataCookieHelper* GetCookieHelper(const std::string& app_id); 771 BrowsingDataCookieHelper* GetCookieHelper(const std::string& app_id);
725 LocalDataContainer* data_container() { 772 LocalDataContainer* data_container() {
726 return data_container_.get(); 773 return data_container_.get();
727 } 774 }
728 775
729 // Set the number of |batches_expected| this class should expect to receive. 776 // Set the number of |batches_expected| this class should expect to receive.
730 // If |reset| is true, then this is a new set of batches, but if false, then 777 // If |reset| is true, then this is a new set of batches, but if false, then
731 // this is a revised number (batches originally counted should no longer be 778 // this is a revised number (batches originally counted should no longer be
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 ScopedBatchUpdateNotifier* notifier, 829 ScopedBatchUpdateNotifier* notifier,
783 const base::string16& filter); 830 const base::string16& filter);
784 void PopulateChannelIDInfoWithFilter( 831 void PopulateChannelIDInfoWithFilter(
785 LocalDataContainer* container, 832 LocalDataContainer* container,
786 ScopedBatchUpdateNotifier* notifier, 833 ScopedBatchUpdateNotifier* notifier,
787 const base::string16& filter); 834 const base::string16& filter);
788 void PopulateServiceWorkerUsageInfoWithFilter( 835 void PopulateServiceWorkerUsageInfoWithFilter(
789 LocalDataContainer* container, 836 LocalDataContainer* container,
790 ScopedBatchUpdateNotifier* notifier, 837 ScopedBatchUpdateNotifier* notifier,
791 const base::string16& filter); 838 const base::string16& filter);
839 void PopulateCacheStorageUsageInfoWithFilter(
840 LocalDataContainer* container,
841 ScopedBatchUpdateNotifier* notifier,
842 const base::string16& filter);
792 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container, 843 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container,
793 ScopedBatchUpdateNotifier* notifier, 844 ScopedBatchUpdateNotifier* notifier,
794 const base::string16& filter); 845 const base::string16& filter);
795 846
796 // Map of app ids to LocalDataContainer objects to use when retrieving 847 // Map of app ids to LocalDataContainer objects to use when retrieving
797 // locally stored data. 848 // locally stored data.
798 scoped_ptr<LocalDataContainer> data_container_; 849 scoped_ptr<LocalDataContainer> data_container_;
799 850
800 #if defined(ENABLE_EXTENSIONS) 851 #if defined(ENABLE_EXTENSIONS)
801 // The extension special storage policy; see ExtensionsProtectingNode() above. 852 // The extension special storage policy; see ExtensionsProtectingNode() above.
(...skipping 17 matching lines...) Expand all
819 870
820 // Counts how many batches have started already. If this is non-zero and lower 871 // Counts how many batches have started already. If this is non-zero and lower
821 // than batches_ended_, then this model is still batching updates. 872 // than batches_ended_, then this model is still batching updates.
822 int batches_started_; 873 int batches_started_;
823 874
824 // Counts how many batches have finished. 875 // Counts how many batches have finished.
825 int batches_ended_; 876 int batches_ended_;
826 }; 877 };
827 878
828 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 879 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698