Chromium Code Reviews| 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 17 matching lines...) Expand all Loading... | |
| 28 // StoragePartition interface. | 28 // StoragePartition interface. |
| 29 virtual FilePath GetPath() OVERRIDE; | 29 virtual FilePath GetPath() OVERRIDE; |
| 30 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; | 30 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; |
| 31 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; | 31 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; |
| 32 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 32 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
| 33 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 33 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 34 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 34 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
| 35 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 35 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 36 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; | 36 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE; |
| 37 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; | 37 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; |
| 38 virtual bool IsInMemoryOnly() OVERRIDE; | |
|
awong
2012/10/18 22:36:15
InMemory() is sufficient I think.
nasko
2012/10/19 17:29:14
Done.
| |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 friend class StoragePartitionImplMap; | 41 friend class StoragePartitionImplMap; |
| 41 | 42 |
| 42 StoragePartitionImpl( | 43 StoragePartitionImpl( |
| 43 const FilePath& partition_path, | 44 const FilePath& partition_path, |
| 44 quota::QuotaManager* quota_manager, | 45 quota::QuotaManager* quota_manager, |
| 45 ChromeAppCacheService* appcache_service, | 46 ChromeAppCacheService* appcache_service, |
| 46 fileapi::FileSystemContext* filesystem_context, | 47 fileapi::FileSystemContext* filesystem_context, |
| 47 webkit_database::DatabaseTracker* database_tracker, | 48 webkit_database::DatabaseTracker* database_tracker, |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 67 FilePath partition_path_; | 68 FilePath partition_path_; |
| 68 scoped_refptr<net::URLRequestContextGetter> url_request_context_; | 69 scoped_refptr<net::URLRequestContextGetter> url_request_context_; |
| 69 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; | 70 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; |
| 70 scoped_refptr<quota::QuotaManager> quota_manager_; | 71 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 71 scoped_refptr<ChromeAppCacheService> appcache_service_; | 72 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 72 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; | 73 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; |
| 73 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 74 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 74 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; | 75 scoped_refptr<DOMStorageContextImpl> dom_storage_context_; |
| 75 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 76 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 76 | 77 |
| 78 | |
| 79 // Boolean to indicate whether this partition should be persisted or not. | |
| 80 bool in_memory_; | |
| 81 | |
| 77 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 82 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 78 }; | 83 }; |
| 79 | 84 |
| 80 } // namespace content | 85 } // namespace content |
| 81 | 86 |
| 82 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 87 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |