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 #include "content/browser/storage_partition_impl.h" | 5 #include "content/browser/storage_partition_impl.h" |
6 | 6 |
7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "content/browser/browser_main_loop.h" | 9 #include "content/browser/browser_main_loop.h" |
10 #include "content/browser/fileapi/browser_file_system_helper.h" | 10 #include "content/browser/fileapi/browser_file_system_helper.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 int quota_client_mask = 0; | 226 int quota_client_mask = 0; |
227 | 227 |
228 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS) | 228 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS) |
229 quota_client_mask |= storage::QuotaClient::kFileSystem; | 229 quota_client_mask |= storage::QuotaClient::kFileSystem; |
230 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_WEBSQL) | 230 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_WEBSQL) |
231 quota_client_mask |= storage::QuotaClient::kDatabase; | 231 quota_client_mask |= storage::QuotaClient::kDatabase; |
232 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_APPCACHE) | 232 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_APPCACHE) |
233 quota_client_mask |= storage::QuotaClient::kAppcache; | 233 quota_client_mask |= storage::QuotaClient::kAppcache; |
234 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_INDEXEDDB) | 234 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_INDEXEDDB) |
235 quota_client_mask |= storage::QuotaClient::kIndexedDatabase; | 235 quota_client_mask |= storage::QuotaClient::kIndexedDatabase; |
236 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS) | 236 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS) { |
237 quota_client_mask |= storage::QuotaClient::kServiceWorker; | 237 quota_client_mask |= storage::QuotaClient::kServiceWorker; |
| 238 quota_client_mask |= storage::QuotaClient::kServiceWorkerCache; |
| 239 } |
| 240 |
238 | 241 |
239 return quota_client_mask; | 242 return quota_client_mask; |
240 } | 243 } |
241 | 244 |
242 // Helper for deleting quota managed data from a partition. | 245 // Helper for deleting quota managed data from a partition. |
243 // | 246 // |
244 // Most of the operations in this class are done on IO thread. | 247 // Most of the operations in this class are done on IO thread. |
245 struct StoragePartitionImpl::QuotaManagedDataDeletionHelper { | 248 struct StoragePartitionImpl::QuotaManagedDataDeletionHelper { |
246 QuotaManagedDataDeletionHelper(uint32 remove_mask, | 249 QuotaManagedDataDeletionHelper(uint32 remove_mask, |
247 uint32 quota_storage_remove_mask, | 250 uint32 quota_storage_remove_mask, |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 net::URLRequestContextGetter* url_request_context) { | 825 net::URLRequestContextGetter* url_request_context) { |
823 url_request_context_ = url_request_context; | 826 url_request_context_ = url_request_context; |
824 } | 827 } |
825 | 828 |
826 void StoragePartitionImpl::SetMediaURLRequestContext( | 829 void StoragePartitionImpl::SetMediaURLRequestContext( |
827 net::URLRequestContextGetter* media_url_request_context) { | 830 net::URLRequestContextGetter* media_url_request_context) { |
828 media_url_request_context_ = media_url_request_context; | 831 media_url_request_context_ = media_url_request_context; |
829 } | 832 } |
830 | 833 |
831 } // namespace content | 834 } // namespace content |
OLD | NEW |