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

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 61023005: service worker scaffolding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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_BROWSER_STORAGE_PARTITION_IMPL_H_ 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/browser/appcache/chrome_appcache_service.h" 11 #include "content/browser/appcache/chrome_appcache_service.h"
12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
13 #include "content/browser/indexed_db/indexed_db_context_impl.h" 13 #include "content/browser/indexed_db/indexed_db_context_impl.h"
14 #include "content/browser/media/webrtc_identity_store.h" 14 #include "content/browser/media/webrtc_identity_store.h"
15 #include "content/browser/service_worker/service_worker_context.h" 15 #include "content/browser/service_worker/service_worker_context_wrapper.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/storage_partition.h" 17 #include "content/public/browser/storage_partition.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class StoragePartitionImpl : public StoragePartition { 21 class StoragePartitionImpl : public StoragePartition {
22 public: 22 public:
23 CONTENT_EXPORT virtual ~StoragePartitionImpl(); 23 CONTENT_EXPORT virtual ~StoragePartitionImpl();
24 24
25 // StoragePartition interface. 25 // StoragePartition interface.
(...skipping 14 matching lines...) Expand all
40 net::URLRequestContextGetter* request_context_getter) OVERRIDE; 40 net::URLRequestContextGetter* request_context_getter) OVERRIDE;
41 virtual void ClearDataForUnboundedRange( 41 virtual void ClearDataForUnboundedRange(
42 uint32 remove_mask, 42 uint32 remove_mask,
43 uint32 quota_storage_remove_mask) OVERRIDE; 43 uint32 quota_storage_remove_mask) OVERRIDE;
44 virtual void ClearDataForRange(uint32 remove_mask, 44 virtual void ClearDataForRange(uint32 remove_mask,
45 uint32 quota_storage_remove_mask, 45 uint32 quota_storage_remove_mask,
46 const base::Time& begin, 46 const base::Time& begin,
47 const base::Time& end, 47 const base::Time& end,
48 const base::Closure& callback) OVERRIDE; 48 const base::Closure& callback) OVERRIDE;
49 49
50 ServiceWorkerContext* GetServiceWorkerContext(); 50 ServiceWorkerContextWrapper* GetServiceWorkerContext();
51 51
52 WebRTCIdentityStore* GetWebRTCIdentityStore(); 52 WebRTCIdentityStore* GetWebRTCIdentityStore();
53 53
54 struct DataDeletionHelper; 54 struct DataDeletionHelper;
55 struct QuotaManagedDataDeletionHelper; 55 struct QuotaManagedDataDeletionHelper;
56 56
57 private: 57 private:
58 friend class StoragePartitionImplMap; 58 friend class StoragePartitionImplMap;
59 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); 59 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache);
60 60
(...skipping 12 matching lines...) Expand all
73 static int GenerateQuotaClientMask(uint32 remove_mask); 73 static int GenerateQuotaClientMask(uint32 remove_mask);
74 74
75 CONTENT_EXPORT StoragePartitionImpl( 75 CONTENT_EXPORT StoragePartitionImpl(
76 const base::FilePath& partition_path, 76 const base::FilePath& partition_path,
77 quota::QuotaManager* quota_manager, 77 quota::QuotaManager* quota_manager,
78 ChromeAppCacheService* appcache_service, 78 ChromeAppCacheService* appcache_service,
79 fileapi::FileSystemContext* filesystem_context, 79 fileapi::FileSystemContext* filesystem_context,
80 webkit_database::DatabaseTracker* database_tracker, 80 webkit_database::DatabaseTracker* database_tracker,
81 DOMStorageContextWrapper* dom_storage_context, 81 DOMStorageContextWrapper* dom_storage_context,
82 IndexedDBContextImpl* indexed_db_context, 82 IndexedDBContextImpl* indexed_db_context,
83 ServiceWorkerContext* service_worker_context, 83 ServiceWorkerContextWrapper* service_worker_context,
84 WebRTCIdentityStore* webrtc_identity_store); 84 WebRTCIdentityStore* webrtc_identity_store);
85 85
86 void ClearDataImpl(uint32 remove_mask, 86 void ClearDataImpl(uint32 remove_mask,
87 uint32 quota_storage_remove_mask, 87 uint32 quota_storage_remove_mask,
88 const GURL& remove_origin, 88 const GURL& remove_origin,
89 net::URLRequestContextGetter* rq_context, 89 net::URLRequestContextGetter* rq_context,
90 const base::Time begin, 90 const base::Time begin,
91 const base::Time end, 91 const base::Time end,
92 const base::Closure& callback); 92 const base::Closure& callback);
93 93
(...skipping 15 matching lines...) Expand all
109 109
110 base::FilePath partition_path_; 110 base::FilePath partition_path_;
111 scoped_refptr<net::URLRequestContextGetter> url_request_context_; 111 scoped_refptr<net::URLRequestContextGetter> url_request_context_;
112 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 112 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
113 scoped_refptr<quota::QuotaManager> quota_manager_; 113 scoped_refptr<quota::QuotaManager> quota_manager_;
114 scoped_refptr<ChromeAppCacheService> appcache_service_; 114 scoped_refptr<ChromeAppCacheService> appcache_service_;
115 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; 115 scoped_refptr<fileapi::FileSystemContext> filesystem_context_;
116 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 116 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
117 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 117 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
118 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 118 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
119 scoped_refptr<ServiceWorkerContext> service_worker_context_; 119 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
120 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 120 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 122 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 127 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698