| 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_LOCAL_DATA_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DATA_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DATA_CONTAINER_H_ | 6 #define CHROME_BROWSER_LOCAL_DATA_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/browser/browsing_data_appcache_helper.h" | 11 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 12 #include "chrome/browser/browsing_data_cookie_helper.h" | 12 #include "chrome/browser/browsing_data_cookie_helper.h" |
| 13 #include "chrome/browser/browsing_data_database_helper.h" | 13 #include "chrome/browser/browsing_data_database_helper.h" |
| 14 #include "chrome/browser/browsing_data_file_system_helper.h" | 14 #include "chrome/browser/browsing_data_file_system_helper.h" |
| 15 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 15 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
| 16 #include "chrome/browser/browsing_data_local_storage_helper.h" | 16 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 17 #include "chrome/browser/browsing_data_quota_helper.h" | 17 #include "chrome/browser/browsing_data_quota_helper.h" |
| 18 #include "chrome/browser/browsing_data_server_bound_cert_helper.h" | 18 #include "chrome/browser/browsing_data_server_bound_cert_helper.h" |
| 19 #include "net/base/server_bound_cert_store.h" | 19 #include "net/base/server_bound_cert_store.h" |
| 20 #include "net/cookies/cookie_monster.h" | |
| 21 | 20 |
| 22 class LocalDataContainer; | 21 class LocalDataContainer; |
| 23 class CookiesTreeModel; | 22 class CookiesTreeModel; |
| 24 | 23 |
| 24 namespace net { |
| 25 class CanonicalCookie; |
| 26 } |
| 27 |
| 25 // Friendly typedefs for the multiple types of lists used in the model. | 28 // Friendly typedefs for the multiple types of lists used in the model. |
| 26 namespace { | 29 namespace { |
| 27 | 30 |
| 28 typedef std::map<std::string, LocalDataContainer*> ContainerMap; | 31 typedef std::map<std::string, LocalDataContainer*> ContainerMap; |
| 29 typedef std::list<net::CookieMonster::CanonicalCookie> CookieList; | 32 typedef std::list<net::CanonicalCookie> CookieList; |
| 30 typedef std::list<BrowsingDataDatabaseHelper::DatabaseInfo> DatabaseInfoList; | 33 typedef std::list<BrowsingDataDatabaseHelper::DatabaseInfo> DatabaseInfoList; |
| 31 typedef std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> | 34 typedef std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> |
| 32 LocalStorageInfoList; | 35 LocalStorageInfoList; |
| 33 typedef std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> | 36 typedef std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> |
| 34 SessionStorageInfoList; | 37 SessionStorageInfoList; |
| 35 typedef std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo> | 38 typedef std::list<BrowsingDataIndexedDBHelper::IndexedDBInfo> |
| 36 IndexedDBInfoList; | 39 IndexedDBInfoList; |
| 37 typedef std::list<BrowsingDataFileSystemHelper::FileSystemInfo> | 40 typedef std::list<BrowsingDataFileSystemHelper::FileSystemInfo> |
| 38 FileSystemInfoList; | 41 FileSystemInfoList; |
| 39 typedef std::list<BrowsingDataQuotaHelper::QuotaInfo> QuotaInfoList; | 42 typedef std::list<BrowsingDataQuotaHelper::QuotaInfo> QuotaInfoList; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // A delegate, which must outlive this object. The update callbacks use the | 132 // A delegate, which must outlive this object. The update callbacks use the |
| 130 // delegate to deliver the updated data to the CookieTreeModel. | 133 // delegate to deliver the updated data to the CookieTreeModel. |
| 131 CookiesTreeModel* model_; | 134 CookiesTreeModel* model_; |
| 132 | 135 |
| 133 base::WeakPtrFactory<LocalDataContainer> weak_ptr_factory_; | 136 base::WeakPtrFactory<LocalDataContainer> weak_ptr_factory_; |
| 134 | 137 |
| 135 DISALLOW_COPY_AND_ASSIGN(LocalDataContainer); | 138 DISALLOW_COPY_AND_ASSIGN(LocalDataContainer); |
| 136 }; | 139 }; |
| 137 | 140 |
| 138 #endif // CHROME_BROWSER_LOCAL_DATA_CONTAINER_H_ | 141 #endif // CHROME_BROWSER_LOCAL_DATA_CONTAINER_H_ |
| OLD | NEW |