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

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address michaeln's comments Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/file_path.h"
10 #include "base/memory/ref_counted.h"
11 #include "content/browser/appcache/chrome_appcache_service.h"
jam 2012/08/15 15:16:22 nit: i think the next 3 headers don't need to be i
awong 2012/08/17 00:52:39 They need to be here because the covariant overrid
12 #include "content/browser/dom_storage/dom_storage_context_impl.h"
13 #include "content/browser/in_process_webkit/indexed_db_context_impl.h"
14 #include "content/public/browser/storage_partition.h"
15
16 namespace content {
17
18 class StoragePartitionImpl : public StoragePartition {
19 public:
20 virtual ~StoragePartitionImpl();
21
22 // TODO(ajwong): Break the direct dependency on |context|. We only
23 // need 3 pieces of info from it.
24 static StoragePartitionImpl* Create(BrowserContext* context,
25 const FilePath& partition_path);
26
27 // StoragePartition interface.
28 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
29 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
30 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
31 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
32 virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE;
33 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
34
35 private:
36 StoragePartitionImpl(const FilePath& partition_path,
37 quota::QuotaManager* quota_manager,
38 ChromeAppCacheService* appcache_service,
39 fileapi::FileSystemContext* filesystem_context,
40 webkit_database::DatabaseTracker* database_tracker,
41 DOMStorageContextImpl* dom_storage_context,
42 IndexedDBContextImpl* indexed_db_context);
43
44 FilePath partition_path_;
45 scoped_refptr<quota::QuotaManager> quota_manager_;
46 scoped_refptr<ChromeAppCacheService> appcache_service_;
47 scoped_refptr<fileapi::FileSystemContext> filesystem_context_;
48 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
49 scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
50 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
51
52 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
53 };
54
55 } // namespace content
56
57 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698