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> | |
9 | |
8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
9 | 11 |
10 namespace appcache { | 12 namespace appcache { |
11 class AppCacheService; | 13 class AppCacheService; |
12 } | 14 } |
13 | 15 |
14 namespace fileapi { | 16 namespace fileapi { |
15 class FileSystemContext; | 17 class FileSystemContext; |
16 } | 18 } |
17 | 19 |
(...skipping 12 matching lines...) Expand all Loading... | |
30 class DOMStorageContext; | 32 class DOMStorageContext; |
31 | 33 |
32 // Defines what persistent state a child process can access. | 34 // Defines what persistent state a child process can access. |
33 // | 35 // |
34 // The StoragePartition defines the view each child process has of the | 36 // The StoragePartition defines the view each child process has of the |
35 // persistent state inside the BrowserContext. This is used to implement | 37 // persistent state inside the BrowserContext. This is used to implement |
36 // isolated storage where a renderer with isolated storage cannot see | 38 // isolated storage where a renderer with isolated storage cannot see |
37 // the cookies, localStorage, etc., that normal web renderers have access to. | 39 // the cookies, localStorage, etc., that normal web renderers have access to. |
38 class StoragePartition { | 40 class StoragePartition { |
39 public: | 41 public: |
42 // Returns the partition id for this StoragePartition. | |
43 // | |
44 // This value should be used to compare whether two StoragePartition objects | |
45 // are equivalent. On the IO thread, this can be particularly useful because | |
46 // StoragePartition objects themselves are only meant for use on the UI | |
47 // thread. | |
michaeln
2012/08/30 21:48:45
I'm thinking that we could make this class thread
| |
48 virtual const std::string& GetId() = 0; | |
49 | |
40 virtual quota::QuotaManager* GetQuotaManager() = 0; | 50 virtual quota::QuotaManager* GetQuotaManager() = 0; |
41 virtual appcache::AppCacheService* GetAppCacheService() = 0; | 51 virtual appcache::AppCacheService* GetAppCacheService() = 0; |
42 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 52 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
43 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 53 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
44 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 54 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
45 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 55 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
46 | 56 |
47 protected: | 57 protected: |
48 virtual ~StoragePartition() {} | 58 virtual ~StoragePartition() {} |
49 }; | 59 }; |
50 | 60 |
51 } // namespace content | 61 } // namespace content |
52 | 62 |
53 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 63 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |