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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 net::URLRequestContextGetter* rq_context, | 524 net::URLRequestContextGetter* rq_context, |
525 const base::Time begin, | 525 const base::Time begin, |
526 const base::Time end, | 526 const base::Time end, |
527 const base::Closure& callback) { | 527 const base::Closure& callback) { |
528 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 528 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
529 DataDeletionHelper* helper = new DataDeletionHelper(remove_mask, | 529 DataDeletionHelper* helper = new DataDeletionHelper(remove_mask, |
530 quota_storage_remove_mask, | 530 quota_storage_remove_mask, |
531 callback); | 531 callback); |
532 // |helper| deletes itself when done in | 532 // |helper| deletes itself when done in |
533 // DataDeletionHelper::DecrementTaskCountOnUI(). | 533 // DataDeletionHelper::DecrementTaskCountOnUI(). |
534 helper->ClearDataOnUIThread(storage_origin, origin_matcher, GetPath(), | 534 helper->ClearDataOnUIThread(storage_origin, |
535 rq_context, dom_storage_context_, quota_manager_, | 535 origin_matcher, |
| 536 GetPath(), |
| 537 rq_context, |
| 538 dom_storage_context_.get(), |
| 539 quota_manager_.get(), |
536 special_storage_policy_.get(), | 540 special_storage_policy_.get(), |
537 webrtc_identity_store_, begin, end); | 541 webrtc_identity_store_.get(), |
| 542 begin, |
| 543 end); |
538 } | 544 } |
539 | 545 |
540 void StoragePartitionImpl:: | 546 void StoragePartitionImpl:: |
541 QuotaManagedDataDeletionHelper::IncrementTaskCountOnIO() { | 547 QuotaManagedDataDeletionHelper::IncrementTaskCountOnIO() { |
542 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 548 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
543 ++task_count; | 549 ++task_count; |
544 } | 550 } |
545 | 551 |
546 void StoragePartitionImpl:: | 552 void StoragePartitionImpl:: |
547 QuotaManagedDataDeletionHelper::DecrementTaskCountOnIO() { | 553 QuotaManagedDataDeletionHelper::DecrementTaskCountOnIO() { |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 net::URLRequestContextGetter* url_request_context) { | 820 net::URLRequestContextGetter* url_request_context) { |
815 url_request_context_ = url_request_context; | 821 url_request_context_ = url_request_context; |
816 } | 822 } |
817 | 823 |
818 void StoragePartitionImpl::SetMediaURLRequestContext( | 824 void StoragePartitionImpl::SetMediaURLRequestContext( |
819 net::URLRequestContextGetter* media_url_request_context) { | 825 net::URLRequestContextGetter* media_url_request_context) { |
820 media_url_request_context_ = media_url_request_context; | 826 media_url_request_context_ = media_url_request_context; |
821 } | 827 } |
822 | 828 |
823 } // namespace content | 829 } // namespace content |
OLD | NEW |