| 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 "chrome/browser/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 waiting_for_clear_channel_ids_ = true; | 796 waiting_for_clear_channel_ids_ = true; |
| 797 BrowserThread::PostTask( | 797 BrowserThread::PostTask( |
| 798 BrowserThread::IO, FROM_HERE, | 798 BrowserThread::IO, FROM_HERE, |
| 799 base::Bind(&ClearChannelIDsOnIOThread, | 799 base::Bind(&ClearChannelIDsOnIOThread, |
| 800 filter_builder.BuildChannelIDFilter(), | 800 filter_builder.BuildChannelIDFilter(), |
| 801 delete_begin_, delete_end_, std::move(rq_context), | 801 delete_begin_, delete_end_, std::move(rq_context), |
| 802 base::Bind(&BrowsingDataRemover::OnClearedChannelIDs, | 802 base::Bind(&BrowsingDataRemover::OnClearedChannelIDs, |
| 803 weak_ptr_factory_.GetWeakPtr()))); | 803 weak_ptr_factory_.GetWeakPtr()))); |
| 804 } | 804 } |
| 805 | 805 |
| 806 if (remove_mask & REMOVE_DURABLE_PERMISSION) { |
| 807 HostContentSettingsMapFactory::GetForProfile(profile_) |
| 808 ->ClearSettingsForOneTypeWithPredicate( |
| 809 CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, |
| 810 base::Bind(&ForwardPrimaryPatternCallback, same_pattern_filter)); |
| 811 } |
| 812 |
| 806 if (remove_mask & REMOVE_LOCAL_STORAGE) { | 813 if (remove_mask & REMOVE_LOCAL_STORAGE) { |
| 807 storage_partition_remove_mask |= | 814 storage_partition_remove_mask |= |
| 808 content::StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE; | 815 content::StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE; |
| 809 } | 816 } |
| 810 | 817 |
| 811 if (remove_mask & REMOVE_INDEXEDDB) { | 818 if (remove_mask & REMOVE_INDEXEDDB) { |
| 812 storage_partition_remove_mask |= | 819 storage_partition_remove_mask |= |
| 813 content::StoragePartition::REMOVE_DATA_MASK_INDEXEDDB; | 820 content::StoragePartition::REMOVE_DATA_MASK_INDEXEDDB; |
| 814 } | 821 } |
| 815 if (remove_mask & REMOVE_WEBSQL) { | 822 if (remove_mask & REMOVE_WEBSQL) { |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 waiting_for_clear_offline_page_data_ = false; | 1542 waiting_for_clear_offline_page_data_ = false; |
| 1536 NotifyIfDone(); | 1543 NotifyIfDone(); |
| 1537 } | 1544 } |
| 1538 #endif | 1545 #endif |
| 1539 | 1546 |
| 1540 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1547 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
| 1541 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1548 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1542 waiting_for_clear_domain_reliability_monitor_ = false; | 1549 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1543 NotifyIfDone(); | 1550 NotifyIfDone(); |
| 1544 } | 1551 } |
| OLD | NEW |