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

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

Issue 645763003: Refactor GeofencingManager to have one instance per StoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 2 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/content_tests.gypi ('k') | no next file » | 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 namespace storage { 35 namespace storage {
36 class DatabaseTracker; 36 class DatabaseTracker;
37 } 37 }
38 38
39 namespace content { 39 namespace content {
40 40
41 class AppCacheService; 41 class AppCacheService;
42 class BrowserContext; 42 class BrowserContext;
43 class DOMStorageContext;
44 class GeofencingManager;
43 class IndexedDBContext; 45 class IndexedDBContext;
44 class DOMStorageContext;
45 class ServiceWorkerContext; 46 class ServiceWorkerContext;
46 47
47 // Defines what persistent state a child process can access. 48 // Defines what persistent state a child process can access.
48 // 49 //
49 // The StoragePartition defines the view each child process has of the 50 // The StoragePartition defines the view each child process has of the
50 // persistent state inside the BrowserContext. This is used to implement 51 // persistent state inside the BrowserContext. This is used to implement
51 // isolated storage where a renderer with isolated storage cannot see 52 // isolated storage where a renderer with isolated storage cannot see
52 // the cookies, localStorage, etc., that normal web renderers have access to. 53 // the cookies, localStorage, etc., that normal web renderers have access to.
53 class CONTENT_EXPORT StoragePartition { 54 class CONTENT_EXPORT StoragePartition {
54 public: 55 public:
55 virtual base::FilePath GetPath() = 0; 56 virtual base::FilePath GetPath() = 0;
56 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 57 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
57 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; 58 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
58 virtual storage::QuotaManager* GetQuotaManager() = 0; 59 virtual storage::QuotaManager* GetQuotaManager() = 0;
59 virtual AppCacheService* GetAppCacheService() = 0; 60 virtual AppCacheService* GetAppCacheService() = 0;
60 virtual storage::FileSystemContext* GetFileSystemContext() = 0; 61 virtual storage::FileSystemContext* GetFileSystemContext() = 0;
61 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; 62 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0;
62 virtual DOMStorageContext* GetDOMStorageContext() = 0; 63 virtual DOMStorageContext* GetDOMStorageContext() = 0;
63 virtual IndexedDBContext* GetIndexedDBContext() = 0; 64 virtual IndexedDBContext* GetIndexedDBContext() = 0;
64 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; 65 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
66 virtual GeofencingManager* GetGeofencingManager() = 0;
65 67
66 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; 68 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0;
67 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; 69 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1;
68 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; 70 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2;
69 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; 71 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3;
70 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; 72 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4;
71 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5; 73 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5;
72 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6; 74 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6;
73 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7; 75 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7;
74 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8; 76 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const base::Time end, 123 const base::Time end,
122 const base::Closure& callback) = 0; 124 const base::Closure& callback) = 0;
123 125
124 protected: 126 protected:
125 virtual ~StoragePartition() {} 127 virtual ~StoragePartition() {}
126 }; 128 };
127 129
128 } // namespace content 130 } // namespace content
129 131
130 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 132 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698