| 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_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual FilePath GetPath() = 0; | 47 virtual FilePath GetPath() = 0; |
| 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 48 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 49 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 49 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
| 50 virtual quota::QuotaManager* GetQuotaManager() = 0; | 50 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 51 virtual appcache::AppCacheService* GetAppCacheService() = 0; | 51 virtual appcache::AppCacheService* GetAppCacheService() = 0; |
| 52 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 52 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
| 53 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 53 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 54 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 54 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| 55 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 55 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| 56 | 56 |
| 57 // Returns a boolean to indicate whether this partition should be persisted on |
| 58 // disk or just be kept in memory. |
| 59 // |
| 60 // TODO(nasko): Remove this function from the public API once |
| 61 // URLRequestContextGetter's creation is moved into StoragePartition. |
| 62 virtual bool IsInMemoryOnly() = 0; |
| 63 |
| 57 // Returns the relative path from the profile's base directory, to the | 64 // Returns the relative path from the profile's base directory, to the |
| 58 // directory that holds all the state for storage contexts in |partition_id|. | 65 // directory that holds all the state for storage contexts in |partition_id|. |
| 59 // | 66 // |
| 60 // TODO(ajwong): Remove this function from the public API once | 67 // TODO(ajwong): Remove this function from the public API once |
| 61 // URLRequestContextGetter's creation is moved into StoragePartition. | 68 // URLRequestContextGetter's creation is moved into StoragePartition. |
| 62 static CONTENT_EXPORT FilePath GetPartitionPath( | 69 static CONTENT_EXPORT FilePath GetPartitionPath( |
| 63 const std::string& partition_id); | 70 const std::string& partition_id); |
| 64 | 71 |
| 65 protected: | 72 protected: |
| 66 virtual ~StoragePartition() {} | 73 virtual ~StoragePartition() {} |
| 67 }; | 74 }; |
| 68 | 75 |
| 69 } // namespace content | 76 } // namespace content |
| 70 | 77 |
| 71 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 78 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |