Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace appcache { | |
| 11 class AppCacheService; | |
| 12 } | |
| 13 | |
| 14 namespace fileapi { | |
| 15 class FileSystemContext; | |
| 16 } | |
| 17 | |
| 18 namespace quota { | |
| 19 class QuotaManager; | |
| 20 } | |
| 21 | |
| 22 namespace webkit_database { | |
| 23 class DatabaseTracker; | |
| 24 } | |
| 25 | |
| 26 namespace content { | |
| 27 | |
| 28 class BrowserContext; | |
| 29 class IndexedDBContext; | |
| 30 class DOMStorageContext; | |
| 31 | |
| 32 // Defines what persistent state a child process can access. | |
| 33 // | |
| 34 // The StoragePartition defines the view each child process has of the | |
| 35 // persistent state inside the BrowserContext. This is used to implement | |
| 36 // isolated storage where a renderer with isolated storage cannot see | |
| 37 // the cookies, localStorage, etc., that normal web renderers have access to. | |
| 38 class StoragePartition { | |
| 39 public: | |
| 40 StoragePartition() {} | |
|
jam
2012/08/15 15:16:22
nit: don't need, so get rid of (convention we foll
awong
2012/08/17 00:52:39
See comment for DISALLOW_COPY_AND_ASSIGN().
jam
2012/08/17 16:42:24
same, only put stuff that's needed. the convention
| |
| 41 | |
| 42 virtual quota::QuotaManager* GetQuotaManager() = 0; | |
| 43 virtual appcache::AppCacheService* GetAppCacheService() = 0; | |
| 44 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | |
| 45 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | |
| 46 virtual content::DOMStorageContext* GetDOMStorageContext() = 0; | |
|
jam
2012/08/15 15:16:22
nit: drop the "content::"
awong
2012/08/17 00:52:39
Done.
| |
| 47 virtual IndexedDBContext* GetIndexedDBContext() = 0; | |
| 48 | |
| 49 protected: | |
| 50 virtual ~StoragePartition() {} | |
| 51 | |
| 52 private: | |
| 53 DISALLOW_COPY_AND_ASSIGN(StoragePartition); | |
|
jam
2012/08/15 15:16:22
nit: not needed since this interface is non-copyab
awong
2012/08/17 00:52:39
I'm not sure I understand. If we leave both the d
jam
2012/08/17 16:42:24
hmm, I didn't even think that *a1= *a2 would compi
| |
| 54 }; | |
| 55 | |
| 56 } // namespace content | |
| 57 | |
| 58 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | |
| OLD | NEW |