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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 // The |partition_path| is the absolute path to the root of this |
135 // StoragePartition's on-disk storage. | 135 // StoragePartition's on-disk storage. |local_partition_path| is the relative |
136 // path to said root minus the local profile directory for cases where we | |
137 // can't access anything outside of the local profile. | |
136 // | 138 // |
137 // If |in_memory| is true, the |partition_path| is (ab)used as a way of | 139 // If |in_memory| is true, the |partition_path| is (ab)used as a way of |
138 // distinguishing different in-memory partitions, but nothing is persisted | 140 // distinguishing different in-memory partitions, but nothing is persisted |
139 // on to disk. | 141 // on to disk. |
140 static StoragePartitionImpl* Create(BrowserContext* context, | 142 static StoragePartitionImpl* Create( |
141 bool in_memory, | 143 BrowserContext* context, |
142 const base::FilePath& profile_path); | 144 bool in_memory, |
145 const base::FilePath& profile_path, | |
146 const base::FilePath& local_partition_path); | |
michaeln
2016/03/16 03:11:13
These two paths are confusing and i think potentia
Elliot Glaysher
2016/03/17 19:29:44
Done.
| |
143 | 147 |
144 CONTENT_EXPORT StoragePartitionImpl( | 148 CONTENT_EXPORT StoragePartitionImpl( |
145 BrowserContext* browser_context, | 149 BrowserContext* browser_context, |
146 const base::FilePath& partition_path, | 150 const base::FilePath& partition_path, |
147 storage::QuotaManager* quota_manager, | 151 storage::QuotaManager* quota_manager, |
148 ChromeAppCacheService* appcache_service, | 152 ChromeAppCacheService* appcache_service, |
149 storage::FileSystemContext* filesystem_context, | 153 storage::FileSystemContext* filesystem_context, |
150 storage::DatabaseTracker* database_tracker, | 154 storage::DatabaseTracker* database_tracker, |
151 DOMStorageContextWrapper* dom_storage_context, | 155 DOMStorageContextWrapper* dom_storage_context, |
152 IndexedDBContextImpl* indexed_db_context, | 156 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 | 215 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
212 // BrowserContext is destroyed, |this| will be destroyed too. | 216 // BrowserContext is destroyed, |this| will be destroyed too. |
213 BrowserContext* browser_context_; | 217 BrowserContext* browser_context_; |
214 | 218 |
215 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 219 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
216 }; | 220 }; |
217 | 221 |
218 } // namespace content | 222 } // namespace content |
219 | 223 |
220 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 224 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |