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

Side by Side Diff: content/public/browser/storage_partition.h

Issue 785133006: Enable messaging over a navigator.connect initiated channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigator-connect_serviceside
Patch Set: add empty line Created 6 years 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
OLDNEW
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 27 matching lines...) Expand all
38 38
39 namespace content { 39 namespace content {
40 40
41 class AppCacheService; 41 class AppCacheService;
42 class BrowserContext; 42 class BrowserContext;
43 class HostZoomLevelContext; 43 class HostZoomLevelContext;
44 class HostZoomMap; 44 class HostZoomMap;
45 class DOMStorageContext; 45 class DOMStorageContext;
46 class GeofencingManager; 46 class GeofencingManager;
47 class IndexedDBContext; 47 class IndexedDBContext;
48 class NavigatorConnectContext;
48 class ServiceWorkerContext; 49 class ServiceWorkerContext;
49 class ZoomLevelDelegate; 50 class ZoomLevelDelegate;
50 51
51 // Defines what persistent state a child process can access. 52 // Defines what persistent state a child process can access.
52 // 53 //
53 // The StoragePartition defines the view each child process has of the 54 // The StoragePartition defines the view each child process has of the
54 // persistent state inside the BrowserContext. This is used to implement 55 // persistent state inside the BrowserContext. This is used to implement
55 // isolated storage where a renderer with isolated storage cannot see 56 // isolated storage where a renderer with isolated storage cannot see
56 // the cookies, localStorage, etc., that normal web renderers have access to. 57 // the cookies, localStorage, etc., that normal web renderers have access to.
57 class CONTENT_EXPORT StoragePartition { 58 class CONTENT_EXPORT StoragePartition {
58 public: 59 public:
59 virtual base::FilePath GetPath() = 0; 60 virtual base::FilePath GetPath() = 0;
60 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 61 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
61 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; 62 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
62 virtual storage::QuotaManager* GetQuotaManager() = 0; 63 virtual storage::QuotaManager* GetQuotaManager() = 0;
63 virtual AppCacheService* GetAppCacheService() = 0; 64 virtual AppCacheService* GetAppCacheService() = 0;
64 virtual storage::FileSystemContext* GetFileSystemContext() = 0; 65 virtual storage::FileSystemContext* GetFileSystemContext() = 0;
65 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; 66 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0;
66 virtual DOMStorageContext* GetDOMStorageContext() = 0; 67 virtual DOMStorageContext* GetDOMStorageContext() = 0;
67 virtual IndexedDBContext* GetIndexedDBContext() = 0; 68 virtual IndexedDBContext* GetIndexedDBContext() = 0;
68 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; 69 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
69 virtual GeofencingManager* GetGeofencingManager() = 0; 70 virtual GeofencingManager* GetGeofencingManager() = 0;
70 virtual HostZoomMap* GetHostZoomMap() = 0; 71 virtual HostZoomMap* GetHostZoomMap() = 0;
71 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; 72 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0;
72 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; 73 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0;
74 virtual NavigatorConnectContext* GetNavigatorConnectContext() = 0;
73 75
74 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; 76 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0;
75 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; 77 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1;
76 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; 78 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2;
77 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; 79 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3;
78 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; 80 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4;
79 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5; 81 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5;
80 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6; 82 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6;
81 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7; 83 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7;
82 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8; 84 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const base::Time end, 131 const base::Time end,
130 const base::Closure& callback) = 0; 132 const base::Closure& callback) = 0;
131 133
132 protected: 134 protected:
133 virtual ~StoragePartition() {} 135 virtual ~StoragePartition() {}
134 }; 136 };
135 137
136 } // namespace content 138 } // namespace content
137 139
138 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 140 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/service_worker/embedded_worker_context_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698