Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2019)

Unified Diff: content/browser/storage_partition_impl.h

Issue 10916132: AppCache and StoragePartition'ing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/storage_partition_impl.h
===================================================================
--- content/browser/storage_partition_impl.h (revision 154786)
+++ content/browser/storage_partition_impl.h (working copy)
@@ -15,10 +15,10 @@
namespace content {
-class StoragePartitionImpl : public StoragePartition {
+class StoragePartitionImpl
+ : public StoragePartition,
+ public base::RefCountedThreadSafe<StoragePartitionImpl> {
public:
- virtual ~StoragePartitionImpl();
-
// TODO(ajwong): Break the direct dependency on |context|. We only
// need 3 pieces of info from it.
static StoragePartitionImpl* Create(BrowserContext* context,
@@ -26,13 +26,17 @@
// StoragePartition interface.
virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
- virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
+ virtual appcache::AppCacheService* GetAppCacheService() OVERRIDE;
awong 2012/09/06 22:29:27 Why'd we remove the covariant return type here?
virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE;
virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
private:
+ friend class base::RefCountedThreadSafe<StoragePartitionImpl>;
+
+ virtual ~StoragePartitionImpl();
+
StoragePartitionImpl(const FilePath& partition_path,
quota::QuotaManager* quota_manager,
ChromeAppCacheService* appcache_service,

Powered by Google App Engine
This is Rietveld 408576698