Index: chrome/browser/cookies_tree_model.h |
=================================================================== |
--- chrome/browser/cookies_tree_model.h (revision 92558) |
+++ chrome/browser/cookies_tree_model.h (working copy) |
@@ -17,12 +17,12 @@ |
#include "base/string16.h" |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/browsing_data_appcache_helper.h" |
+#include "chrome/browser/browsing_data_cookie_helper.h" |
erikwright (departed)
2011/07/19 14:40:33
I believe you should be able to forward declare th
ycxiao1
2011/07/19 22:12:48
Done.
|
#include "chrome/browser/browsing_data_database_helper.h" |
#include "chrome/browser/browsing_data_file_system_helper.h" |
#include "chrome/browser/browsing_data_indexed_db_helper.h" |
#include "chrome/browser/browsing_data_local_storage_helper.h" |
#include "chrome/common/content_settings.h" |
-#include "net/base/cookie_monster.h" |
#include "ui/base/models/tree_node_model.h" |
erikwright (departed)
2011/07/19 14:40:33
Include what you use: net::CookieMonster::Canonica
ycxiao1
2011/07/19 22:12:48
Done. Postpone the moving of CanonicalCookie.
|
class CookiesTreeModel; |
@@ -69,8 +69,8 @@ |
TYPE_APPCACHE, // This is used for CookieTreeAppCacheNode. |
TYPE_INDEXED_DBS, // This is used for CookieTreeIndexedDBsNode. |
TYPE_INDEXED_DB, // This is used for CookieTreeIndexedDBNode. |
- TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode. |
- TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode. |
+ TYPE_FILE_SYSTEMS, // This is used for CookieTreeFileSystemsNode. |
+ TYPE_FILE_SYSTEM, // This is used for CookieTreeFileSystemNode. |
}; |
// TODO(viettrungluu): Figure out whether we want to store |origin| as a |
@@ -514,7 +514,7 @@ |
}; |
CookiesTreeModel( |
- net::CookieMonster* cookie_monster_, |
+ BrowsingDataCookieHelper* cookie_helper, |
BrowsingDataDatabaseHelper* database_helper, |
BrowsingDataLocalStorageHelper* local_storage_helper, |
BrowsingDataLocalStorageHelper* session_storage_helper, |
@@ -566,10 +566,8 @@ |
typedef std::vector<BrowsingDataFileSystemHelper::FileSystemInfo> |
FileSystemInfoList; |
- void LoadCookies(); |
- void LoadCookiesWithFilter(const std::wstring& filter); |
- |
void OnAppCacheModelInfoLoaded(); |
+ void OnCookiesModelInfoLoaded(const CookieList& cookie_list); |
void OnDatabaseModelInfoLoaded(const DatabaseInfoList& database_info); |
void OnLocalStorageModelInfoLoaded( |
const LocalStorageInfoList& local_storage_info); |
@@ -581,6 +579,7 @@ |
const FileSystemInfoList& file_system_info); |
void PopulateAppCacheInfoWithFilter(const std::wstring& filter); |
+ void PopulateCookieInfoWithFilter(const std::wstring& filter); |
void PopulateDatabaseInfoWithFilter(const std::wstring& filter); |
void PopulateLocalStorageInfoWithFilter(const std::wstring& filter); |
void PopulateSessionStorageInfoWithFilter(const std::wstring& filter); |
@@ -590,18 +589,17 @@ |
void NotifyObserverBeginBatch(); |
void NotifyObserverEndBatch(); |
- scoped_refptr<net::CookieMonster> cookie_monster_; |
- CookieList all_cookies_; |
- |
scoped_refptr<BrowsingDataAppCacheHelper> appcache_helper_; |
+ scoped_refptr<BrowsingDataCookieHelper> cookie_helper_; |
scoped_refptr<BrowsingDataDatabaseHelper> database_helper_; |
- scoped_refptr<appcache::AppCacheInfoCollection> appcache_info_; |
- DatabaseInfoList database_info_list_; |
- |
scoped_refptr<BrowsingDataLocalStorageHelper> local_storage_helper_; |
scoped_refptr<BrowsingDataLocalStorageHelper> session_storage_helper_; |
scoped_refptr<BrowsingDataIndexedDBHelper> indexed_db_helper_; |
scoped_refptr<BrowsingDataFileSystemHelper> file_system_helper_; |
+ |
+ scoped_refptr<appcache::AppCacheInfoCollection> appcache_info_; |
+ CookieList cookie_list_; |
+ DatabaseInfoList database_info_list_; |
LocalStorageInfoList local_storage_info_list_; |
LocalStorageInfoList session_storage_info_list_; |
IndexedDBInfoList indexed_db_info_list_; |