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_LOCAL_DATA_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_LOCAL_DATA_CONTAINER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_LOCAL_DATA_CONTAINER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_LOCAL_DATA_CONTAINER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 typedef std::list<content::IndexedDBInfo> | 44 typedef std::list<content::IndexedDBInfo> |
45 IndexedDBInfoList; | 45 IndexedDBInfoList; |
46 typedef std::list<BrowsingDataFileSystemHelper::FileSystemInfo> | 46 typedef std::list<BrowsingDataFileSystemHelper::FileSystemInfo> |
47 FileSystemInfoList; | 47 FileSystemInfoList; |
48 typedef std::list<BrowsingDataQuotaHelper::QuotaInfo> QuotaInfoList; | 48 typedef std::list<BrowsingDataQuotaHelper::QuotaInfo> QuotaInfoList; |
49 typedef net::ChannelIDStore::ChannelIDList ChannelIDList; | 49 typedef net::ChannelIDStore::ChannelIDList ChannelIDList; |
50 typedef std::list<content::ServiceWorkerUsageInfo> ServiceWorkerUsageInfoList; | 50 typedef std::list<content::ServiceWorkerUsageInfo> ServiceWorkerUsageInfoList; |
51 typedef std::map<GURL, std::list<content::AppCacheInfo> > AppCacheInfoMap; | 51 typedef std::map<GURL, std::list<content::AppCacheInfo> > AppCacheInfoMap; |
52 typedef std::vector<std::string> FlashLSODomainList; | 52 typedef std::vector<std::string> FlashLSODomainList; |
53 | 53 |
54 } // namespace | 54 } // namespace |
55 | 55 |
56 // LocalDataContainer --------------------------------------------------------- | 56 // LocalDataContainer --------------------------------------------------------- |
57 // This class is a wrapper around all the BrowsingData*Helper classes. Because | 57 // This class is a wrapper around all the BrowsingData*Helper classes. Because |
58 // isolated applications have separate storage, we need different helper | 58 // isolated applications have separate storage, we need different helper |
59 // instances. As such, this class contains the app name and id, along with the | 59 // instances. As such, this class contains the app name and id, along with the |
60 // helpers for all of the data types we need. The browser-wide "app id" will be | 60 // helpers for all of the data types we need. The browser-wide "app id" will be |
61 // the empty string, as no app can have an empty id. | 61 // the empty string, as no app can have an empty id. |
62 class LocalDataContainer { | 62 class LocalDataContainer { |
63 public: | 63 public: |
64 LocalDataContainer( | 64 LocalDataContainer( |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // A delegate, which must outlive this object. The update callbacks use the | 142 // A delegate, which must outlive this object. The update callbacks use the |
143 // delegate to deliver the updated data to the CookieTreeModel. | 143 // delegate to deliver the updated data to the CookieTreeModel. |
144 CookiesTreeModel* model_; | 144 CookiesTreeModel* model_; |
145 | 145 |
146 base::WeakPtrFactory<LocalDataContainer> weak_ptr_factory_; | 146 base::WeakPtrFactory<LocalDataContainer> weak_ptr_factory_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(LocalDataContainer); | 148 DISALLOW_COPY_AND_ASSIGN(LocalDataContainer); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_DATA_CONTAINER_H_ | 151 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_DATA_CONTAINER_H_ |
OLD | NEW |