| 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 the relative path from the profile's base directory, to the | |
| 58 // directory that holds all the state for storage contexts in |partition_id|. | |
| 59 // | |
| 60 // TODO(ajwong): Remove this function from the public API once | |
| 61 // URLRequestContextGetter's creation is moved into StoragePartition. | |
| 62 static CONTENT_EXPORT FilePath GetPartitionPath( | |
| 63 const std::string& partition_id); | |
| 64 | |
| 65 protected: | 57 protected: |
| 66 virtual ~StoragePartition() {} | 58 virtual ~StoragePartition() {} |
| 67 }; | 59 }; |
| 68 | 60 |
| 69 } // namespace content | 61 } // namespace content |
| 70 | 62 |
| 71 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 63 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |