| 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_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 #include "webkit/browser/quota/special_storage_policy.h" | 18 #include "webkit/browser/quota/special_storage_policy.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 class StoragePartitionImpl : public StoragePartition { | 22 class StoragePartitionImpl : public StoragePartition { |
| 23 public: | 23 public: |
| 24 CONTENT_EXPORT virtual ~StoragePartitionImpl(); | 24 CONTENT_EXPORT virtual ~StoragePartitionImpl(); |
| 25 | 25 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 49 const GURL& storage_origin, | 49 const GURL& storage_origin, |
| 50 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 50 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
| 51 virtual void ClearData(uint32 remove_mask, | 51 virtual void ClearData(uint32 remove_mask, |
| 52 uint32 quota_storage_remove_mask, | 52 uint32 quota_storage_remove_mask, |
| 53 const GURL* storage_origin, | 53 const GURL* storage_origin, |
| 54 const OriginMatcherFunction& origin_matcher, | 54 const OriginMatcherFunction& origin_matcher, |
| 55 const base::Time begin, | 55 const base::Time begin, |
| 56 const base::Time end, | 56 const base::Time end, |
| 57 const base::Closure& callback) OVERRIDE; | 57 const base::Closure& callback) OVERRIDE; |
| 58 | 58 |
| 59 ServiceWorkerContext* GetServiceWorkerContext(); | 59 ServiceWorkerContextWrapper* GetServiceWorkerContext(); |
| 60 | 60 |
| 61 WebRTCIdentityStore* GetWebRTCIdentityStore(); | 61 WebRTCIdentityStore* GetWebRTCIdentityStore(); |
| 62 | 62 |
| 63 struct DataDeletionHelper; | 63 struct DataDeletionHelper; |
| 64 struct QuotaManagedDataDeletionHelper; | 64 struct QuotaManagedDataDeletionHelper; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 friend class StoragePartitionImplMap; | 67 friend class StoragePartitionImplMap; |
| 68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); | 68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); |
| 69 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 69 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const base::FilePath& profile_path); | 108 const base::FilePath& profile_path); |
| 109 | 109 |
| 110 CONTENT_EXPORT StoragePartitionImpl( | 110 CONTENT_EXPORT StoragePartitionImpl( |
| 111 const base::FilePath& partition_path, | 111 const base::FilePath& partition_path, |
| 112 quota::QuotaManager* quota_manager, | 112 quota::QuotaManager* quota_manager, |
| 113 ChromeAppCacheService* appcache_service, | 113 ChromeAppCacheService* appcache_service, |
| 114 fileapi::FileSystemContext* filesystem_context, | 114 fileapi::FileSystemContext* filesystem_context, |
| 115 webkit_database::DatabaseTracker* database_tracker, | 115 webkit_database::DatabaseTracker* database_tracker, |
| 116 DOMStorageContextWrapper* dom_storage_context, | 116 DOMStorageContextWrapper* dom_storage_context, |
| 117 IndexedDBContextImpl* indexed_db_context, | 117 IndexedDBContextImpl* indexed_db_context, |
| 118 ServiceWorkerContext* service_worker_context, | 118 ServiceWorkerContextWrapper* service_worker_context, |
| 119 WebRTCIdentityStore* webrtc_identity_store, | 119 WebRTCIdentityStore* webrtc_identity_store, |
| 120 quota::SpecialStoragePolicy* special_storage_policy); | 120 quota::SpecialStoragePolicy* special_storage_policy); |
| 121 | 121 |
| 122 void ClearDataImpl(uint32 remove_mask, | 122 void ClearDataImpl(uint32 remove_mask, |
| 123 uint32 quota_storage_remove_mask, | 123 uint32 quota_storage_remove_mask, |
| 124 const GURL* remove_origin, | 124 const GURL* remove_origin, |
| 125 const OriginMatcherFunction& origin_matcher, | 125 const OriginMatcherFunction& origin_matcher, |
| 126 net::URLRequestContextGetter* rq_context, | 126 net::URLRequestContextGetter* rq_context, |
| 127 const base::Time begin, | 127 const base::Time begin, |
| 128 const base::Time end, | 128 const base::Time end, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 147 | 147 |
| 148 base::FilePath partition_path_; | 148 base::FilePath partition_path_; |
| 149 scoped_refptr<net::URLRequestContextGetter> url_request_context_; | 149 scoped_refptr<net::URLRequestContextGetter> url_request_context_; |
| 150 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; | 150 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; |
| 151 scoped_refptr<quota::QuotaManager> quota_manager_; | 151 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 152 scoped_refptr<ChromeAppCacheService> appcache_service_; | 152 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 153 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; | 153 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; |
| 154 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 154 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 155 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; | 155 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
| 156 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 156 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 157 scoped_refptr<ServiceWorkerContext> service_worker_context_; | 157 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| 158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
| 159 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 159 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
| 160 | 160 |
| 161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace content | 164 } // namespace content |
| 165 | 165 |
| 166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |