| 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 <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 continue; | 719 continue; |
| 720 | 720 |
| 721 if (!origin_matcher.is_null() && | 721 if (!origin_matcher.is_null() && |
| 722 !origin_matcher.Run(*origin, special_storage_policy.get())) { | 722 !origin_matcher.Run(*origin, special_storage_policy.get())) { |
| 723 continue; | 723 continue; |
| 724 } | 724 } |
| 725 | 725 |
| 726 (*deletion_task_count)++; | 726 (*deletion_task_count)++; |
| 727 quota_manager->DeleteOriginData( | 727 quota_manager->DeleteOriginData( |
| 728 *origin, quota_storage_type, | 728 *origin, quota_storage_type, |
| 729 StoragePartitionImpl::GenerateQuotaClientMask(remove_mask), | 729 StoragePartitionImpl::GenerateQuotaClientMask(remove_mask), false, |
| 730 base::Bind(&OnQuotaManagedOriginDeleted, | 730 base::Bind(&OnQuotaManagedOriginDeleted, origin->GetOrigin(), |
| 731 origin->GetOrigin(), quota_storage_type, | 731 quota_storage_type, deletion_task_count, callback)); |
| 732 deletion_task_count, callback)); | |
| 733 } | 732 } |
| 734 (*deletion_task_count)--; | 733 (*deletion_task_count)--; |
| 735 | 734 |
| 736 CheckQuotaManagedDataDeletionStatus(deletion_task_count, callback); | 735 CheckQuotaManagedDataDeletionStatus(deletion_task_count, callback); |
| 737 } | 736 } |
| 738 | 737 |
| 739 void StoragePartitionImpl::DataDeletionHelper::IncrementTaskCountOnUI() { | 738 void StoragePartitionImpl::DataDeletionHelper::IncrementTaskCountOnUI() { |
| 740 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 739 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 741 ++task_count; | 740 ++task_count; |
| 742 } | 741 } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 net::URLRequestContextGetter* url_request_context) { | 905 net::URLRequestContextGetter* url_request_context) { |
| 907 url_request_context_ = url_request_context; | 906 url_request_context_ = url_request_context; |
| 908 } | 907 } |
| 909 | 908 |
| 910 void StoragePartitionImpl::SetMediaURLRequestContext( | 909 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 911 net::URLRequestContextGetter* media_url_request_context) { | 910 net::URLRequestContextGetter* media_url_request_context) { |
| 912 media_url_request_context_ = media_url_request_context; | 911 media_url_request_context_ = media_url_request_context; |
| 913 } | 912 } |
| 914 | 913 |
| 915 } // namespace content | 914 } // namespace content |
| OLD | NEW |