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

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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 6 months 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 namespace storage { 37 namespace storage {
38 class DatabaseTracker; 38 class DatabaseTracker;
39 } 39 }
40 40
41 namespace content { 41 namespace content {
42 42
43 class AppCacheService; 43 class AppCacheService;
44 class BrowserContext; 44 class BrowserContext;
45 class CacheStorageContext; 45 class CacheStorageContext;
46 class DOMStorageContext; 46 class DOMStorageContext;
47 class HostZoomLevelContext;
48 class HostZoomMap;
49 class IndexedDBContext; 47 class IndexedDBContext;
50 class PlatformNotificationContext; 48 class PlatformNotificationContext;
51 class ServiceWorkerContext; 49 class ServiceWorkerContext;
50
51 #if !defined(OS_ANDROID)
52 class HostZoomLevelContext;
53 class HostZoomMap;
52 class ZoomLevelDelegate; 54 class ZoomLevelDelegate;
55 #endif // !defined(OS_ANDROID)
53 56
54 // Defines what persistent state a child process can access. 57 // Defines what persistent state a child process can access.
55 // 58 //
56 // The StoragePartition defines the view each child process has of the 59 // The StoragePartition defines the view each child process has of the
57 // persistent state inside the BrowserContext. This is used to implement 60 // persistent state inside the BrowserContext. This is used to implement
58 // isolated storage where a renderer with isolated storage cannot see 61 // isolated storage where a renderer with isolated storage cannot see
59 // the cookies, localStorage, etc., that normal web renderers have access to. 62 // the cookies, localStorage, etc., that normal web renderers have access to.
60 class CONTENT_EXPORT StoragePartition { 63 class CONTENT_EXPORT StoragePartition {
61 public: 64 public:
62 virtual base::FilePath GetPath() = 0; 65 virtual base::FilePath GetPath() = 0;
63 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 66 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
64 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; 67 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
65 virtual storage::QuotaManager* GetQuotaManager() = 0; 68 virtual storage::QuotaManager* GetQuotaManager() = 0;
66 virtual AppCacheService* GetAppCacheService() = 0; 69 virtual AppCacheService* GetAppCacheService() = 0;
67 virtual storage::FileSystemContext* GetFileSystemContext() = 0; 70 virtual storage::FileSystemContext* GetFileSystemContext() = 0;
68 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; 71 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0;
69 virtual DOMStorageContext* GetDOMStorageContext() = 0; 72 virtual DOMStorageContext* GetDOMStorageContext() = 0;
70 virtual IndexedDBContext* GetIndexedDBContext() = 0; 73 virtual IndexedDBContext* GetIndexedDBContext() = 0;
71 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; 74 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
72 virtual CacheStorageContext* GetCacheStorageContext() = 0; 75 virtual CacheStorageContext* GetCacheStorageContext() = 0;
76 #if !defined(OS_ANDROID)
73 virtual HostZoomMap* GetHostZoomMap() = 0; 77 virtual HostZoomMap* GetHostZoomMap() = 0;
74 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; 78 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0;
75 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; 79 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0;
80 #endif // !defined(OS_ANDROID)
76 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; 81 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0;
77 82
78 enum : uint32_t { 83 enum : uint32_t {
79 REMOVE_DATA_MASK_APPCACHE = 1 << 0, 84 REMOVE_DATA_MASK_APPCACHE = 1 << 0,
80 REMOVE_DATA_MASK_COOKIES = 1 << 1, 85 REMOVE_DATA_MASK_COOKIES = 1 << 1,
81 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, 86 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2,
82 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, 87 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3,
83 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, 88 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4,
84 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, 89 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5,
85 REMOVE_DATA_MASK_WEBSQL = 1 << 6, 90 REMOVE_DATA_MASK_WEBSQL = 1 << 6,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Clear the bluetooth allowed devices map. For test use only. 184 // Clear the bluetooth allowed devices map. For test use only.
180 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; 185 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0;
181 186
182 protected: 187 protected:
183 virtual ~StoragePartition() {} 188 virtual ~StoragePartition() {}
184 }; 189 };
185 190
186 } // namespace content 191 } // namespace content
187 192
188 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 193 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698