| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 content::StoragePartition::REMOVE_DATA_MASK_WEBSQL; | 531 content::StoragePartition::REMOVE_DATA_MASK_WEBSQL; |
| 532 } | 532 } |
| 533 if (remove_mask & REMOVE_APPCACHE) { | 533 if (remove_mask & REMOVE_APPCACHE) { |
| 534 storage_partition_remove_mask |= | 534 storage_partition_remove_mask |= |
| 535 content::StoragePartition::REMOVE_DATA_MASK_APPCACHE; | 535 content::StoragePartition::REMOVE_DATA_MASK_APPCACHE; |
| 536 } | 536 } |
| 537 if (remove_mask & REMOVE_SERVICE_WORKERS) { | 537 if (remove_mask & REMOVE_SERVICE_WORKERS) { |
| 538 storage_partition_remove_mask |= | 538 storage_partition_remove_mask |= |
| 539 content::StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS; | 539 content::StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS; |
| 540 } | 540 } |
| 541 if (remove_mask & REMOVE_CACHE_STORAGE) { |
| 542 storage_partition_remove_mask |= |
| 543 content::StoragePartition::REMOVE_DATA_MASK_CACHE_STORAGE; |
| 544 } |
| 541 if (remove_mask & REMOVE_FILE_SYSTEMS) { | 545 if (remove_mask & REMOVE_FILE_SYSTEMS) { |
| 542 storage_partition_remove_mask |= | 546 storage_partition_remove_mask |= |
| 543 content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS; | 547 content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS; |
| 544 } | 548 } |
| 545 | 549 |
| 546 #if defined(ENABLE_PLUGINS) | 550 #if defined(ENABLE_PLUGINS) |
| 547 // Plugin is data not separated for protected and unprotected web origins. We | 551 // Plugin is data not separated for protected and unprotected web origins. We |
| 548 // check the origin_type_mask_ to prevent unintended deletion. | 552 // check the origin_type_mask_ to prevent unintended deletion. |
| 549 if (remove_mask & REMOVE_PLUGIN_DATA && | 553 if (remove_mask & REMOVE_PLUGIN_DATA && |
| 550 origin_type_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { | 554 origin_type_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 waiting_for_clear_domain_reliability_monitor_ = false; | 1149 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1146 NotifyAndDeleteIfDone(); | 1150 NotifyAndDeleteIfDone(); |
| 1147 } | 1151 } |
| 1148 | 1152 |
| 1149 // static | 1153 // static |
| 1150 BrowsingDataRemover::CallbackSubscription | 1154 BrowsingDataRemover::CallbackSubscription |
| 1151 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( | 1155 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( |
| 1152 const BrowsingDataRemover::Callback& callback) { | 1156 const BrowsingDataRemover::Callback& callback) { |
| 1153 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); | 1157 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); |
| 1154 } | 1158 } |
| OLD | NEW |