| OLD | NEW |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info); | 103 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info); |
| 104 DetailedInfo& InitLocalStorage( | 104 DetailedInfo& InitLocalStorage( |
| 105 const BrowsingDataLocalStorageHelper::LocalStorageInfo* | 105 const BrowsingDataLocalStorageHelper::LocalStorageInfo* |
| 106 local_storage_info); | 106 local_storage_info); |
| 107 DetailedInfo& InitSessionStorage( | 107 DetailedInfo& InitSessionStorage( |
| 108 const BrowsingDataLocalStorageHelper::LocalStorageInfo* | 108 const BrowsingDataLocalStorageHelper::LocalStorageInfo* |
| 109 session_storage_info); | 109 session_storage_info); |
| 110 DetailedInfo& InitAppCache(const GURL& origin, | 110 DetailedInfo& InitAppCache(const GURL& origin, |
| 111 const appcache::AppCacheInfo* appcache_info); | 111 const appcache::AppCacheInfo* appcache_info); |
| 112 DetailedInfo& InitIndexedDB( | 112 DetailedInfo& InitIndexedDB( |
| 113 const BrowsingDataIndexedDBHelper::IndexedDBInfo* indexed_db_info); | 113 const content::IndexedDBInfo* indexed_db_info); |
| 114 DetailedInfo& InitFileSystem( | 114 DetailedInfo& InitFileSystem( |
| 115 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info); | 115 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info); |
| 116 DetailedInfo& InitQuota( | 116 DetailedInfo& InitQuota( |
| 117 const BrowsingDataQuotaHelper::QuotaInfo* quota_info); | 117 const BrowsingDataQuotaHelper::QuotaInfo* quota_info); |
| 118 DetailedInfo& InitServerBoundCert( | 118 DetailedInfo& InitServerBoundCert( |
| 119 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert); | 119 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert); |
| 120 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain); | 120 DetailedInfo& InitFlashLSO(const std::string& flash_lso_domain); |
| 121 | 121 |
| 122 NodeType node_type; | 122 NodeType node_type; |
| 123 GURL origin; | 123 GURL origin; |
| 124 const net::CanonicalCookie* cookie; | 124 const net::CanonicalCookie* cookie; |
| 125 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info; | 125 const BrowsingDataDatabaseHelper::DatabaseInfo* database_info; |
| 126 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info; | 126 const BrowsingDataLocalStorageHelper::LocalStorageInfo* local_storage_info; |
| 127 const BrowsingDataLocalStorageHelper::LocalStorageInfo* | 127 const BrowsingDataLocalStorageHelper::LocalStorageInfo* |
| 128 session_storage_info; | 128 session_storage_info; |
| 129 const appcache::AppCacheInfo* appcache_info; | 129 const appcache::AppCacheInfo* appcache_info; |
| 130 const BrowsingDataIndexedDBHelper::IndexedDBInfo* indexed_db_info; | 130 const content::IndexedDBInfo* indexed_db_info; |
| 131 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info; | 131 const BrowsingDataFileSystemHelper::FileSystemInfo* file_system_info; |
| 132 const BrowsingDataQuotaHelper::QuotaInfo* quota_info; | 132 const BrowsingDataQuotaHelper::QuotaInfo* quota_info; |
| 133 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert; | 133 const net::ServerBoundCertStore::ServerBoundCert* server_bound_cert; |
| 134 std::string flash_lso_domain; | 134 std::string flash_lso_domain; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 CookieTreeNode() {} | 137 CookieTreeNode() {} |
| 138 explicit CookieTreeNode(const string16& title) | 138 explicit CookieTreeNode(const string16& title) |
| 139 : ui::TreeNode<CookieTreeNode>(title) {} | 139 : ui::TreeNode<CookieTreeNode>(title) {} |
| 140 virtual ~CookieTreeNode() {} | 140 virtual ~CookieTreeNode() {} |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStoragesNode); | 469 DISALLOW_COPY_AND_ASSIGN(CookieTreeSessionStoragesNode); |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 // CookieTreeIndexedDBNode ----------------------------------------------- | 472 // CookieTreeIndexedDBNode ----------------------------------------------- |
| 473 class CookieTreeIndexedDBNode : public CookieTreeNode { | 473 class CookieTreeIndexedDBNode : public CookieTreeNode { |
| 474 public: | 474 public: |
| 475 // indexed_db_info should remain valid at least as long as the | 475 // indexed_db_info should remain valid at least as long as the |
| 476 // CookieTreeIndexedDBNode is valid. | 476 // CookieTreeIndexedDBNode is valid. |
| 477 explicit CookieTreeIndexedDBNode( | 477 explicit CookieTreeIndexedDBNode( |
| 478 std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo>::iterator | 478 std::list<content::IndexedDBInfo>::iterator |
| 479 indexed_db_info); | 479 indexed_db_info); |
| 480 virtual ~CookieTreeIndexedDBNode(); | 480 virtual ~CookieTreeIndexedDBNode(); |
| 481 | 481 |
| 482 // CookieTreeNode methods: | 482 // CookieTreeNode methods: |
| 483 virtual void DeleteStoredObjects() OVERRIDE; | 483 virtual void DeleteStoredObjects() OVERRIDE; |
| 484 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; | 484 virtual DetailedInfo GetDetailedInfo() const OVERRIDE; |
| 485 | 485 |
| 486 private: | 486 private: |
| 487 // indexed_db_info_ is expected to remain valid as long as the | 487 // indexed_db_info_ is expected to remain valid as long as the |
| 488 // CookieTreeIndexedDBNode is valid. | 488 // CookieTreeIndexedDBNode is valid. |
| 489 std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo>::iterator | 489 std::list<content::IndexedDBInfo>::iterator |
| 490 indexed_db_info_; | 490 indexed_db_info_; |
| 491 | 491 |
| 492 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBNode); | 492 DISALLOW_COPY_AND_ASSIGN(CookieTreeIndexedDBNode); |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 class CookieTreeIndexedDBsNode : public CookieTreeNode { | 495 class CookieTreeIndexedDBsNode : public CookieTreeNode { |
| 496 public: | 496 public: |
| 497 CookieTreeIndexedDBsNode(); | 497 CookieTreeIndexedDBsNode(); |
| 498 virtual ~CookieTreeIndexedDBsNode(); | 498 virtual ~CookieTreeIndexedDBsNode(); |
| 499 | 499 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 // Otherwise, use the CanonicalCookie::Domain attribute. | 726 // Otherwise, use the CanonicalCookie::Domain attribute. |
| 727 bool group_by_cookie_source_; | 727 bool group_by_cookie_source_; |
| 728 | 728 |
| 729 // If this is non-zero, then this model is batching updates (there's a lot of | 729 // If this is non-zero, then this model is batching updates (there's a lot of |
| 730 // notifications coming down the pipe). This is an integer is used to balance | 730 // notifications coming down the pipe). This is an integer is used to balance |
| 731 // calls to Begin/EndBatch() if they're called in a nested manner. | 731 // calls to Begin/EndBatch() if they're called in a nested manner. |
| 732 int batch_update_; | 732 int batch_update_; |
| 733 }; | 733 }; |
| 734 | 734 |
| 735 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ | 735 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIES_TREE_MODEL_H_ |
| OLD | NEW |