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 CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 RemoveQuotaManagedIgnoreDevTools); | 124 RemoveQuotaManagedIgnoreDevTools); |
125 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieForever); | 125 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieForever); |
126 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieLastHour); | 126 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieLastHour); |
127 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 127 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
128 RemoveUnprotectedLocalStorageForever); | 128 RemoveUnprotectedLocalStorageForever); |
129 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 129 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
130 RemoveProtectedLocalStorageForever); | 130 RemoveProtectedLocalStorageForever); |
131 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 131 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
132 RemoveLocalStorageForLastWeek); | 132 RemoveLocalStorageForLastWeek); |
133 | 133 |
134 // The |partition_path| is the absolute path to the root of this | 134 // |relative_partition_path| is the relative path under |profile_path| to the |
135 // StoragePartition's on-disk storage. | 135 // StoragePartition's on-disk-storage. |
136 // | 136 // |
137 // If |in_memory| is true, the |partition_path| is (ab)used as a way of | 137 // If |in_memory| is true, the |relative_partition_path| is (ab)used as a way |
138 // distinguishing different in-memory partitions, but nothing is persisted | 138 // of distinguishing different in-memory partitions, but nothing is persisted |
139 // on to disk. | 139 // on to disk. |
140 static StoragePartitionImpl* Create(BrowserContext* context, | 140 static StoragePartitionImpl* Create( |
141 bool in_memory, | 141 BrowserContext* context, |
142 const base::FilePath& profile_path); | 142 bool in_memory, |
| 143 const base::FilePath& relative_partition_path); |
143 | 144 |
144 CONTENT_EXPORT StoragePartitionImpl( | 145 CONTENT_EXPORT StoragePartitionImpl( |
145 BrowserContext* browser_context, | 146 BrowserContext* browser_context, |
146 const base::FilePath& partition_path, | 147 const base::FilePath& partition_path, |
147 storage::QuotaManager* quota_manager, | 148 storage::QuotaManager* quota_manager, |
148 ChromeAppCacheService* appcache_service, | 149 ChromeAppCacheService* appcache_service, |
149 storage::FileSystemContext* filesystem_context, | 150 storage::FileSystemContext* filesystem_context, |
150 storage::DatabaseTracker* database_tracker, | 151 storage::DatabaseTracker* database_tracker, |
151 DOMStorageContextWrapper* dom_storage_context, | 152 DOMStorageContextWrapper* dom_storage_context, |
152 IndexedDBContextImpl* indexed_db_context, | 153 IndexedDBContextImpl* indexed_db_context, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 212 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
212 // BrowserContext is destroyed, |this| will be destroyed too. | 213 // BrowserContext is destroyed, |this| will be destroyed too. |
213 BrowserContext* browser_context_; | 214 BrowserContext* browser_context_; |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 216 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace content | 219 } // namespace content |
219 | 220 |
220 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 221 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |