| 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> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class DOMStorageContext; | 39 class DOMStorageContext; |
| 40 | 40 |
| 41 // Defines what persistent state a child process can access. | 41 // Defines what persistent state a child process can access. |
| 42 // | 42 // |
| 43 // The StoragePartition defines the view each child process has of the | 43 // The StoragePartition defines the view each child process has of the |
| 44 // persistent state inside the BrowserContext. This is used to implement | 44 // persistent state inside the BrowserContext. This is used to implement |
| 45 // isolated storage where a renderer with isolated storage cannot see | 45 // isolated storage where a renderer with isolated storage cannot see |
| 46 // the cookies, localStorage, etc., that normal web renderers have access to. | 46 // the cookies, localStorage, etc., that normal web renderers have access to. |
| 47 class StoragePartition { | 47 class StoragePartition { |
| 48 public: | 48 public: |
| 49 virtual FilePath GetPath() = 0; | 49 virtual base::FilePath GetPath() = 0; |
| 50 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 50 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 51 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 51 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
| 52 virtual quota::QuotaManager* GetQuotaManager() = 0; | 52 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 53 virtual appcache::AppCacheService* GetAppCacheService() = 0; | 53 virtual appcache::AppCacheService* GetAppCacheService() = 0; |
| 54 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 54 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
| 55 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 55 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 56 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 56 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| 57 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 57 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| 58 | 58 |
| 59 // Starts an asynchronous task that does a best-effort clear of all the | 59 // Starts an asynchronous task that does a best-effort clear of all the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 // StoragePartition rather than just the data related to this origin. | 72 // StoragePartition rather than just the data related to this origin. |
| 73 virtual void AsyncClearAllData() = 0; | 73 virtual void AsyncClearAllData() = 0; |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 virtual ~StoragePartition() {} | 76 virtual ~StoragePartition() {} |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace content | 79 } // namespace content |
| 80 | 80 |
| 81 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 81 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |