| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 static StoragePartitionImpl* Create(BrowserContext* context, | 24 static StoragePartitionImpl* Create(BrowserContext* context, |
| 25 const FilePath& partition_path); | 25 const FilePath& partition_path); |
| 26 | 26 |
| 27 // StoragePartition interface. | 27 // StoragePartition interface. |
| 28 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 28 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
| 29 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 29 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 30 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 30 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
| 31 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 31 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 32 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; | 32 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; |
| 33 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; | 33 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; |
| 34 virtual ResourceContext* GetResourceContext() OVERRIDE; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 StoragePartitionImpl(const FilePath& partition_path, | 37 StoragePartitionImpl(const FilePath& partition_path, |
| 37 quota::QuotaManager* quota_manager, | 38 quota::QuotaManager* quota_manager, |
| 38 ChromeAppCacheService* appcache_service, | 39 ChromeAppCacheService* appcache_service, |
| 39 fileapi::FileSystemContext* filesystem_context, | 40 fileapi::FileSystemContext* filesystem_context, |
| 40 webkit_database::DatabaseTracker* database_tracker, | 41 webkit_database::DatabaseTracker* database_tracker, |
| 41 DOMStorageContextImpl* dom_storage_context, | 42 DOMStorageContextImpl* dom_storage_context, |
| 42 IndexedDBContextImpl* indexed_db_context); | 43 IndexedDBContextImpl* indexed_db_context, |
| 44 ResourceContext* resource_context); |
| 43 | 45 |
| 44 FilePath partition_path_; | 46 FilePath partition_path_; |
| 45 scoped_refptr<quota::QuotaManager> quota_manager_; | 47 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 46 scoped_refptr<ChromeAppCacheService> appcache_service_; | 48 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 47 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; | 49 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; |
| 48 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 50 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 49 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; | 51 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; |
| 50 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 52 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 53 ResourceContext* resource_context_; |
| 51 | 54 |
| 52 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 55 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 } // namespace content | 58 } // namespace content |
| 56 | 59 |
| 57 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 60 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |