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

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

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 appcache::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& InitServerBoundCert(
122 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert); 122 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert);
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 appcache::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::ServerBoundCertStore::ServerBoundCert* server_bound_cert;
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) {}
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 // CookieTreeAppCacheNode ----------------------------------------------------- 282 // CookieTreeAppCacheNode -----------------------------------------------------
283 class CookieTreeAppCacheNode : public CookieTreeNode { 283 class CookieTreeAppCacheNode : public CookieTreeNode {
284 public: 284 public:
285 friend class CookieTreeAppCachesNode; 285 friend class CookieTreeAppCachesNode;
286 286
287 // appcache_info should remain valid at least as long as the 287 // appcache_info should remain valid at least as long as the
288 // CookieTreeAppCacheNode is valid. 288 // CookieTreeAppCacheNode is valid.
289 explicit CookieTreeAppCacheNode( 289 explicit CookieTreeAppCacheNode(
290 const GURL& origin_url, 290 const GURL& origin_url,
291 std::list<appcache::AppCacheInfo>::iterator appcache_info); 291 std::list<content::AppCacheInfo>::iterator appcache_info);
292 virtual ~CookieTreeAppCacheNode(); 292 virtual ~CookieTreeAppCacheNode();
293 293
294 virtual void DeleteStoredObjects() OVERRIDE; 294 virtual void DeleteStoredObjects() OVERRIDE;
295 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 295 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
296 296
297 private: 297 private:
298 GURL origin_url_; 298 GURL origin_url_;
299 std::list<appcache::AppCacheInfo>::iterator appcache_info_; 299 std::list<content::AppCacheInfo>::iterator appcache_info_;
300 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCacheNode); 300 DISALLOW_COPY_AND_ASSIGN(CookieTreeAppCacheNode);
301 }; 301 };
302 302
303 class CookieTreeAppCachesNode : public CookieTreeNode { 303 class CookieTreeAppCachesNode : public CookieTreeNode {
304 public: 304 public:
305 CookieTreeAppCachesNode(); 305 CookieTreeAppCachesNode();
306 virtual ~CookieTreeAppCachesNode(); 306 virtual ~CookieTreeAppCachesNode();
307 307
308 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; 308 virtual DetailedInfo GetDetailedInfo() const OVERRIDE;
309 309
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
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