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

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

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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_database_helper.h" 21 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
22 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" 22 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
23 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" 23 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
24 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 24 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
25 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" 25 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
26 #include "chrome/browser/browsing_data/local_data_container.h" 26 #include "chrome/browser/browsing_data/local_data_container.h"
27 #include "chrome/common/content_settings.h" 27 #include "chrome/common/content_settings.h"
28 #include "net/ssl/server_bound_cert_store.h" 28 #include "net/ssl/channel_id_store.h"
29 #include "ui/base/models/tree_node_model.h" 29 #include "ui/base/models/tree_node_model.h"
30 30
31 class BrowsingDataCookieHelper; 31 class BrowsingDataCookieHelper;
32 class BrowsingDataServerBoundCertHelper; 32 class BrowsingDataChannelIDHelper;
wtc 2014/07/01 19:50:48 List in alphabetical order.
Ryan Hamilton 2014/07/21 19:12:04 Done.
33 class CookieSettings; 33 class CookieSettings;
34 class CookiesTreeModel; 34 class CookiesTreeModel;
35 class CookieTreeAppCacheNode; 35 class CookieTreeAppCacheNode;
36 class CookieTreeAppCachesNode; 36 class CookieTreeAppCachesNode;
37 class CookieTreeCookieNode; 37 class CookieTreeCookieNode;
38 class CookieTreeCookiesNode; 38 class CookieTreeCookiesNode;
39 class CookieTreeDatabaseNode; 39 class CookieTreeDatabaseNode;
40 class CookieTreeDatabasesNode; 40 class CookieTreeDatabasesNode;
41 class CookieTreeFileSystemNode; 41 class CookieTreeFileSystemNode;
42 class CookieTreeFileSystemsNode; 42 class CookieTreeFileSystemsNode;
43 class CookieTreeFlashLSONode; 43 class CookieTreeFlashLSONode;
44 class CookieTreeHostNode; 44 class CookieTreeHostNode;
45 class CookieTreeIndexedDBNode; 45 class CookieTreeIndexedDBNode;
46 class CookieTreeIndexedDBsNode; 46 class CookieTreeIndexedDBsNode;
47 class CookieTreeLocalStorageNode; 47 class CookieTreeLocalStorageNode;
48 class CookieTreeLocalStoragesNode; 48 class CookieTreeLocalStoragesNode;
49 class CookieTreeQuotaNode; 49 class CookieTreeQuotaNode;
50 class CookieTreeServerBoundCertNode; 50 class CookieTreeChannelIDNode;
51 class CookieTreeServerBoundCertsNode; 51 class CookieTreeChannelIDsNode;
wtc 2014/07/01 19:50:48 List in alphabetical order.
Ryan Hamilton 2014/07/21 19:12:04 Done.
52 class CookieTreeSessionStorageNode; 52 class CookieTreeSessionStorageNode;
53 class CookieTreeSessionStoragesNode; 53 class CookieTreeSessionStoragesNode;
54 class ExtensionSpecialStoragePolicy; 54 class ExtensionSpecialStoragePolicy;
55 55
56 namespace extensions { 56 namespace extensions {
57 class ExtensionSet; 57 class ExtensionSet;
58 } 58 }
59 59
60 namespace net { 60 namespace net {
61 class CanonicalCookie; 61 class CanonicalCookie;
(...skipping 22 matching lines...) Expand all
84 TYPE_LOCAL_STORAGE, // This is used for CookieTreeLocalStorageNode. 84 TYPE_LOCAL_STORAGE, // This is used for CookieTreeLocalStorageNode.
85 TYPE_SESSION_STORAGES, // This is used for CookieTreeSessionStoragesNode. 85 TYPE_SESSION_STORAGES, // This is used for CookieTreeSessionStoragesNode.
86 TYPE_SESSION_STORAGE, // This is used for CookieTreeSessionStorageNode. 86 TYPE_SESSION_STORAGE, // This is used for CookieTreeSessionStorageNode.
87 TYPE_APPCACHES, // This is used for CookieTreeAppCachesNode. 87 TYPE_APPCACHES, // This is used for CookieTreeAppCachesNode.
88 TYPE_APPCACHE, // This is used for CookieTreeAppCacheNode. 88 TYPE_APPCACHE, // This is used for CookieTreeAppCacheNode.
89 TYPE_INDEXED_DBS, // This is used for CookieTreeIndexedDBsNode. 89 TYPE_INDEXED_DBS, // This is used for CookieTreeIndexedDBsNode.
90 TYPE_INDEXED_DB, // This is used for CookieTreeIndexedDBNode. 90 TYPE_INDEXED_DB, // This is used for CookieTreeIndexedDBNode.
91 TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode. 91 TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode.
92 TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode. 92 TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode.
93 TYPE_QUOTA, // This is used for CookieTreeQuotaNode. 93 TYPE_QUOTA, // This is used for CookieTreeQuotaNode.
94 TYPE_SERVER_BOUND_CERTS, // Used for CookieTreeServerBoundCertsNode. 94 TYPE_CHANNEL_IDS, // Used for CookieTreeChannelIDsNode.
95 TYPE_SERVER_BOUND_CERT, // Used for CookieTreeServerBoundCertNode. 95 TYPE_CHANNEL_ID, // Used for CookieTreeChannelIDNode.
96 TYPE_FLASH_LSO, // This is used for CookieTreeFlashLSONode. 96 TYPE_FLASH_LSO, // This is used for CookieTreeFlashLSONode.
97 }; 97 };
98 98
99 DetailedInfo(); 99 DetailedInfo();
100 ~DetailedInfo(); 100 ~DetailedInfo();
101 101
102 DetailedInfo& Init(NodeType type); 102 DetailedInfo& Init(NodeType type);
103 DetailedInfo& InitHost(); 103 DetailedInfo& InitHost();
104 DetailedInfo& InitCookie(const net::CanonicalCookie* cookie); 104 DetailedInfo& InitCookie(const net::CanonicalCookie* cookie);
105 DetailedInfo& InitDatabase( 105 DetailedInfo& InitDatabase(
106 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info); 106 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info);
107 DetailedInfo& InitLocalStorage( 107 DetailedInfo& InitLocalStorage(
108 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 108 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
109 local_storage_info); 109 local_storage_info);
110 DetailedInfo& InitSessionStorage( 110 DetailedInfo& InitSessionStorage(
111 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 111 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
112 session_storage_info); 112 session_storage_info);
113 DetailedInfo& InitAppCache(const GURL& origin, 113 DetailedInfo& InitAppCache(const GURL& origin,
114 const content::AppCacheInfo* appcache_info); 114 const content::AppCacheInfo* appcache_info);
115 DetailedInfo& InitIndexedDB( 115 DetailedInfo& InitIndexedDB(
116 const content::IndexedDBInfo* indexed_db_info); 116 const content::IndexedDBInfo* indexed_db_info);
117 DetailedInfo& InitFileSystem( 117 DetailedInfo& InitFileSystem(
118 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info); 118 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info);
119 DetailedInfo& InitQuota( 119 DetailedInfo& InitQuota(
120 const BrowsingDataQuotaHelper::QuotaInfo* quota_info); 120 const BrowsingDataQuotaHelper::QuotaInfo* quota_info);
121 DetailedInfo& InitServerBoundCert( 121 DetailedInfo& InitChannelID(
122 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert); 122 const net::ChannelIDStore::ChannelID* channel_id);
123 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain); 123 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain);
124 124
125 NodeType node_type; 125 NodeType node_type;
126 GURL origin; 126 GURL origin;
127 const net::CanonicalCookie* cookie; 127 const net::CanonicalCookie* cookie;
128 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info; 128 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info;
129 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info; 129 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info;
130 const BrowsingDataLocalStorageHelper::LocalStorageInfo* 130 const BrowsingDataLocalStorageHelper::LocalStorageInfo*
131 session_storage_info; 131 session_storage_info;
132 const content::AppCacheInfo* appcache_info; 132 const content::AppCacheInfo* appcache_info;
133 const content::IndexedDBInfo* indexed_db_info; 133 const content::IndexedDBInfo* indexed_db_info;
134 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info; 134 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info;
135 const BrowsingDataQuotaHelper::QuotaInfo* quota_info; 135 const BrowsingDataQuotaHelper::QuotaInfo* quota_info;
136 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert; 136 const net::ChannelIDStore::ChannelID* channel_id;
137 std::string flash_lso_domain; 137 std::string flash_lso_domain;
138 }; 138 };
139 139
140 CookieTreeNode() {} 140 CookieTreeNode() {}
141 explicit CookieTreeNode(const base::string16& title) 141 explicit CookieTreeNode(const base::string16& title)
142 : ui::TreeNode<CookieTreeNode>(title) {} 142 : ui::TreeNode<CookieTreeNode>(title) {}
143 virtual ~CookieTreeNode() {} 143 virtual ~CookieTreeNode() {}
144 144
145 // Delete backend storage for this node, and any children nodes. (E.g. delete 145 // Delete backend storage for this node, and any children nodes. (E.g. delete
146 // the cookie from CookieMonster, clear the database, and so forth.) 146 // the cookie from CookieMonster, clear the database, and so forth.)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 192 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
193 193
194 // CookieTreeHostNode methods: 194 // CookieTreeHostNode methods:
195 CookieTreeCookiesNode* GetOrCreateCookiesNode(); 195 CookieTreeCookiesNode* GetOrCreateCookiesNode();
196 CookieTreeDatabasesNode* GetOrCreateDatabasesNode(); 196 CookieTreeDatabasesNode* GetOrCreateDatabasesNode();
197 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode(); 197 CookieTreeLocalStoragesNode* GetOrCreateLocalStoragesNode();
198 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode(); 198 CookieTreeSessionStoragesNode* GetOrCreateSessionStoragesNode();
199 CookieTreeAppCachesNode* GetOrCreateAppCachesNode(); 199 CookieTreeAppCachesNode* GetOrCreateAppCachesNode();
200 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode(); 200 CookieTreeIndexedDBsNode* GetOrCreateIndexedDBsNode();
201 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode(); 201 CookieTreeFileSystemsNode* GetOrCreateFileSystemsNode();
202 CookieTreeServerBoundCertsNode* GetOrCreateServerBoundCertsNode(); 202 CookieTreeChannelIDsNode* GetOrCreateChannelIDsNode();
203 CookieTreeQuotaNode* UpdateOrCreateQuotaNode( 203 CookieTreeQuotaNode* UpdateOrCreateQuotaNode(
204 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info); 204 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info);
205 CookieTreeFlashLSONode* GetOrCreateFlashLSONode(const std::string& domain); 205 CookieTreeFlashLSONode* GetOrCreateFlashLSONode(const std::string& domain);
206 206
207 std::string canonicalized_host() const { return canonicalized_host_; } 207 std::string canonicalized_host() const { return canonicalized_host_; }
208 208
209 // Creates an content exception for this origin of type 209 // Creates an content exception for this origin of type
210 // CONTENT_SETTINGS_TYPE_COOKIES. 210 // CONTENT_SETTINGS_TYPE_COOKIES.
211 void CreateContentException(CookieSettings* cookie_settings, 211 void CreateContentException(CookieSettings* cookie_settings,
212 ContentSetting setting) const; 212 ContentSetting setting) const;
(...skipping 10 matching lines...) Expand all
223 // them to see if they are a COOKIES, APPCACHES, DATABASES etc node seems 223 // them to see if they are a COOKIES, APPCACHES, DATABASES etc node seems
224 // less preferable than storing an extra pointer per origin. 224 // less preferable than storing an extra pointer per origin.
225 CookieTreeCookiesNode* cookies_child_; 225 CookieTreeCookiesNode* cookies_child_;
226 CookieTreeDatabasesNode* databases_child_; 226 CookieTreeDatabasesNode* databases_child_;
227 CookieTreeLocalStoragesNode* local_storages_child_; 227 CookieTreeLocalStoragesNode* local_storages_child_;
228 CookieTreeSessionStoragesNode* session_storages_child_; 228 CookieTreeSessionStoragesNode* session_storages_child_;
229 CookieTreeAppCachesNode* appcaches_child_; 229 CookieTreeAppCachesNode* appcaches_child_;
230 CookieTreeIndexedDBsNode* indexed_dbs_child_; 230 CookieTreeIndexedDBsNode* indexed_dbs_child_;
231 CookieTreeFileSystemsNode* file_systems_child_; 231 CookieTreeFileSystemsNode* file_systems_child_;
232 CookieTreeQuotaNode* quota_child_; 232 CookieTreeQuotaNode* quota_child_;
233 CookieTreeServerBoundCertsNode* server_bound_certs_child_; 233 CookieTreeChannelIDsNode* channel_ids_child_;
234 CookieTreeFlashLSONode* flash_lso_child_; 234 CookieTreeFlashLSONode* flash_lso_child_;
235 235
236 // The URL for which this node was initially created. 236 // The URL for which this node was initially created.
237 GURL url_; 237 GURL url_;
238 238
239 std::string canonicalized_host_; 239 std::string canonicalized_host_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(CookieTreeHostNode); 241 DISALLOW_COPY_AND_ASSIGN(CookieTreeHostNode);
242 }; 242 };
243 243
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 523 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
524 524
525 private: 525 private:
526 // quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode 526 // quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode
527 // is valid. 527 // is valid.
528 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info_; 528 std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info_;
529 529
530 DISALLOW_COPY_AND_ASSIGN(CookieTreeQuotaNode); 530 DISALLOW_COPY_AND_ASSIGN(CookieTreeQuotaNode);
531 }; 531 };
532 532
533 // CookieTreeServerBoundCertNode --------------------------------------------- 533 // CookieTreeChannelIDNode ---------------------------------------------
534 class CookieTreeServerBoundCertNode : public CookieTreeNode { 534 class CookieTreeChannelIDNode : public CookieTreeNode {
535 public: 535 public:
536 friend class CookieTreeServerBoundCertsNode; 536 friend class CookieTreeChannelIDsNode;
537 537
538 // The iterator should remain valid at least as long as the 538 // The iterator should remain valid at least as long as the
539 // CookieTreeServerBoundCertNode is valid. 539 // CookieTreeChannelIDNode is valid.
540 explicit CookieTreeServerBoundCertNode( 540 explicit CookieTreeChannelIDNode(
541 net::ServerBoundCertStore::ServerBoundCertList::iterator cert); 541 net::ChannelIDStore::ChannelIDList::iterator cert);
542 virtual ~CookieTreeServerBoundCertNode(); 542 virtual ~CookieTreeChannelIDNode();
543 543
544 // CookieTreeNode methods: 544 // CookieTreeNode methods:
545 virtual void DeleteStoredObjects() OVERRIDE; 545 virtual void DeleteStoredObjects() OVERRIDE;
546 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 546 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
547 547
548 private: 548 private:
549 // server_bound_cert_ is expected to remain valid as long as the 549 // channel_id_ is expected to remain valid as long as the
550 // CookieTreeServerBoundCertNode is valid. 550 // CookieTreeChannelIDNode is valid.
551 net::ServerBoundCertStore::ServerBoundCertList::iterator server_bound_cert_; 551 net::ChannelIDStore::ChannelIDList::iterator channel_id_;
552 552
553 DISALLOW_COPY_AND_ASSIGN(CookieTreeServerBoundCertNode); 553 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDNode);
554 }; 554 };
555 555
556 class CookieTreeServerBoundCertsNode : public CookieTreeNode { 556 class CookieTreeChannelIDsNode : public CookieTreeNode {
557 public: 557 public:
558 CookieTreeServerBoundCertsNode(); 558 CookieTreeChannelIDsNode();
559 virtual ~CookieTreeServerBoundCertsNode(); 559 virtual ~CookieTreeChannelIDsNode();
560 560
561 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 561 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
562 562
563 void AddServerBoundCertNode(CookieTreeServerBoundCertNode* child) { 563 void AddChannelIDNode(CookieTreeChannelIDNode* child) {
564 AddChildSortedByTitle(child); 564 AddChildSortedByTitle(child);
565 } 565 }
566 566
567 private: 567 private:
568 DISALLOW_COPY_AND_ASSIGN(CookieTreeServerBoundCertsNode); 568 DISALLOW_COPY_AND_ASSIGN(CookieTreeChannelIDsNode);
569 }; 569 };
570 570
571 // CookieTreeFlashLSONode ---------------------------------------------------- 571 // CookieTreeFlashLSONode ----------------------------------------------------
572 class CookieTreeFlashLSONode : public CookieTreeNode { 572 class CookieTreeFlashLSONode : public CookieTreeNode {
573 public: 573 public:
574 explicit CookieTreeFlashLSONode(const std::string& domain); 574 explicit CookieTreeFlashLSONode(const std::string& domain);
575 virtual ~CookieTreeFlashLSONode(); 575 virtual ~CookieTreeFlashLSONode();
576 576
577 // CookieTreeNode methods: 577 // CookieTreeNode methods:
578 virtual void DeleteStoredObjects() OVERRIDE; 578 virtual void DeleteStoredObjects() OVERRIDE;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 // Methods that update the model based on the data retrieved by the browsing 657 // Methods that update the model based on the data retrieved by the browsing
658 // data helpers. 658 // data helpers.
659 void PopulateAppCacheInfo(LocalDataContainer* container); 659 void PopulateAppCacheInfo(LocalDataContainer* container);
660 void PopulateCookieInfo(LocalDataContainer* container); 660 void PopulateCookieInfo(LocalDataContainer* container);
661 void PopulateDatabaseInfo(LocalDataContainer* container); 661 void PopulateDatabaseInfo(LocalDataContainer* container);
662 void PopulateLocalStorageInfo(LocalDataContainer* container); 662 void PopulateLocalStorageInfo(LocalDataContainer* container);
663 void PopulateSessionStorageInfo(LocalDataContainer* container); 663 void PopulateSessionStorageInfo(LocalDataContainer* container);
664 void PopulateIndexedDBInfo(LocalDataContainer* container); 664 void PopulateIndexedDBInfo(LocalDataContainer* container);
665 void PopulateFileSystemInfo(LocalDataContainer* container); 665 void PopulateFileSystemInfo(LocalDataContainer* container);
666 void PopulateQuotaInfo(LocalDataContainer* container); 666 void PopulateQuotaInfo(LocalDataContainer* container);
667 void PopulateServerBoundCertInfo(LocalDataContainer* container); 667 void PopulateChannelIDInfo(LocalDataContainer* container);
668 void PopulateFlashLSOInfo(LocalDataContainer* container); 668 void PopulateFlashLSOInfo(LocalDataContainer* container);
669 669
670 BrowsingDataCookieHelper* GetCookieHelper(const std::string& app_id); 670 BrowsingDataCookieHelper* GetCookieHelper(const std::string& app_id);
671 LocalDataContainer* data_container() { 671 LocalDataContainer* data_container() {
672 return data_container_.get(); 672 return data_container_.get();
673 } 673 }
674 674
675 private: 675 private:
676 enum CookieIconIndex { 676 enum CookieIconIndex {
677 ORIGIN = 0, 677 ORIGIN = 0,
(...skipping 21 matching lines...) Expand all
699 const base::string16& filter); 699 const base::string16& filter);
700 void PopulateIndexedDBInfoWithFilter(LocalDataContainer* container, 700 void PopulateIndexedDBInfoWithFilter(LocalDataContainer* container,
701 ScopedBatchUpdateNotifier* notifier, 701 ScopedBatchUpdateNotifier* notifier,
702 const base::string16& filter); 702 const base::string16& filter);
703 void PopulateFileSystemInfoWithFilter(LocalDataContainer* container, 703 void PopulateFileSystemInfoWithFilter(LocalDataContainer* container,
704 ScopedBatchUpdateNotifier* notifier, 704 ScopedBatchUpdateNotifier* notifier,
705 const base::string16& filter); 705 const base::string16& filter);
706 void PopulateQuotaInfoWithFilter(LocalDataContainer* container, 706 void PopulateQuotaInfoWithFilter(LocalDataContainer* container,
707 ScopedBatchUpdateNotifier* notifier, 707 ScopedBatchUpdateNotifier* notifier,
708 const base::string16& filter); 708 const base::string16& filter);
709 void PopulateServerBoundCertInfoWithFilter( 709 void PopulateChannelIDInfoWithFilter(
710 LocalDataContainer* container, 710 LocalDataContainer* container,
711 ScopedBatchUpdateNotifier* notifier, 711 ScopedBatchUpdateNotifier* notifier,
712 const base::string16& filter); 712 const base::string16& filter);
713 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container, 713 void PopulateFlashLSOInfoWithFilter(LocalDataContainer* container,
714 ScopedBatchUpdateNotifier* notifier, 714 ScopedBatchUpdateNotifier* notifier,
715 const base::string16& filter); 715 const base::string16& filter);
716 716
717 // Map of app ids to LocalDataContainer objects to use when retrieving 717 // Map of app ids to LocalDataContainer objects to use when retrieving
718 // locally stored data. 718 // locally stored data.
719 scoped_ptr<LocalDataContainer> data_container_; 719 scoped_ptr<LocalDataContainer> data_container_;
720 720
721 // The extension special storage policy; see ExtensionsProtectingNode() above. 721 // The extension special storage policy; see ExtensionsProtectingNode() above.
722 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_; 722 scoped_refptr<ExtensionSpecialStoragePolicy> special_storage_policy_;
723 723
724 // The CookiesTreeModel maintains a separate list of observers that are 724 // The CookiesTreeModel maintains a separate list of observers that are
725 // specifically of the type CookiesTreeModel::Observer. 725 // specifically of the type CookiesTreeModel::Observer.
726 ObserverList<Observer> cookies_observer_list_; 726 ObserverList<Observer> cookies_observer_list_;
727 727
728 // If true, use the CanonicalCookie::Source attribute to group cookies. 728 // If true, use the CanonicalCookie::Source attribute to group cookies.
729 // Otherwise, use the CanonicalCookie::Domain attribute. 729 // Otherwise, use the CanonicalCookie::Domain attribute.
730 bool group_by_cookie_source_; 730 bool group_by_cookie_source_;
731 731
732 // If this is non-zero, then this model is batching updates (there's a lot of 732 // If this is non-zero, then this model is batching updates (there's a lot of
733 // notifications coming down the pipe). This is an integer is used to balance 733 // notifications coming down the pipe). This is an integer is used to balance
734 // calls to Begin/EndBatch() if they're called in a nested manner. 734 // calls to Begin/EndBatch() if they're called in a nested manner.
735 int batch_update_; 735 int batch_update_;
736 }; 736 };
737 737
738 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ 738 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698