| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class IndexedDBContext; | 47 class IndexedDBContext; |
| 48 class PlatformNotificationContext; | 48 class PlatformNotificationContext; |
| 49 class ServiceWorkerContext; | 49 class ServiceWorkerContext; |
| 50 | 50 |
| 51 #if !defined(OS_ANDROID) | 51 #if !defined(OS_ANDROID) |
| 52 class HostZoomLevelContext; | 52 class HostZoomLevelContext; |
| 53 class HostZoomMap; | 53 class HostZoomMap; |
| 54 class ZoomLevelDelegate; | 54 class ZoomLevelDelegate; |
| 55 #endif // !defined(OS_ANDROID) | 55 #endif // !defined(OS_ANDROID) |
| 56 | 56 |
| 57 namespace mojom { |
| 58 class NetworkContext; |
| 59 } |
| 60 |
| 57 // Defines what persistent state a child process can access. | 61 // Defines what persistent state a child process can access. |
| 58 // | 62 // |
| 59 // The StoragePartition defines the view each child process has of the | 63 // The StoragePartition defines the view each child process has of the |
| 60 // persistent state inside the BrowserContext. This is used to implement | 64 // persistent state inside the BrowserContext. This is used to implement |
| 61 // isolated storage where a renderer with isolated storage cannot see | 65 // isolated storage where a renderer with isolated storage cannot see |
| 62 // the cookies, localStorage, etc., that normal web renderers have access to. | 66 // the cookies, localStorage, etc., that normal web renderers have access to. |
| 63 class CONTENT_EXPORT StoragePartition { | 67 class CONTENT_EXPORT StoragePartition { |
| 64 public: | 68 public: |
| 65 virtual base::FilePath GetPath() = 0; | 69 virtual base::FilePath GetPath() = 0; |
| 66 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 70 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 67 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 71 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
| 72 // Returns the NetworkContext associated with this storage partition. Must |
| 73 // only be called when the network service is enabled. |
| 74 virtual mojom::NetworkContext* GetNetworkContext() = 0; |
| 68 virtual storage::QuotaManager* GetQuotaManager() = 0; | 75 virtual storage::QuotaManager* GetQuotaManager() = 0; |
| 69 virtual AppCacheService* GetAppCacheService() = 0; | 76 virtual AppCacheService* GetAppCacheService() = 0; |
| 70 virtual storage::FileSystemContext* GetFileSystemContext() = 0; | 77 virtual storage::FileSystemContext* GetFileSystemContext() = 0; |
| 71 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; | 78 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; |
| 72 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 79 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| 73 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 80 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| 74 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; | 81 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; |
| 75 virtual CacheStorageContext* GetCacheStorageContext() = 0; | 82 virtual CacheStorageContext* GetCacheStorageContext() = 0; |
| 76 #if !defined(OS_ANDROID) | 83 #if !defined(OS_ANDROID) |
| 77 virtual HostZoomMap* GetHostZoomMap() = 0; | 84 virtual HostZoomMap* GetHostZoomMap() = 0; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // Clear the bluetooth allowed devices map. For test use only. | 191 // Clear the bluetooth allowed devices map. For test use only. |
| 185 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; | 192 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; |
| 186 | 193 |
| 187 protected: | 194 protected: |
| 188 virtual ~StoragePartition() {} | 195 virtual ~StoragePartition() {} |
| 189 }; | 196 }; |
| 190 | 197 |
| 191 } // namespace content | 198 } // namespace content |
| 192 | 199 |
| 193 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 200 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |