| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 content::StoragePartition::REMOVE_DATA_MASK_WEBSQL; | 559 content::StoragePartition::REMOVE_DATA_MASK_WEBSQL; |
| 560 } | 560 } |
| 561 if (remove_mask & REMOVE_APPCACHE) { | 561 if (remove_mask & REMOVE_APPCACHE) { |
| 562 storage_partition_remove_mask |= | 562 storage_partition_remove_mask |= |
| 563 content::StoragePartition::REMOVE_DATA_MASK_APPCACHE; | 563 content::StoragePartition::REMOVE_DATA_MASK_APPCACHE; |
| 564 } | 564 } |
| 565 if (remove_mask & REMOVE_SERVICE_WORKERS) { | 565 if (remove_mask & REMOVE_SERVICE_WORKERS) { |
| 566 storage_partition_remove_mask |= | 566 storage_partition_remove_mask |= |
| 567 content::StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS; | 567 content::StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS; |
| 568 } | 568 } |
| 569 if (remove_mask & REMOVE_CACHE_STORAGE) { |
| 570 storage_partition_remove_mask |= |
| 571 content::StoragePartition::REMOVE_DATA_MASK_CACHE_STORAGE; |
| 572 } |
| 569 if (remove_mask & REMOVE_FILE_SYSTEMS) { | 573 if (remove_mask & REMOVE_FILE_SYSTEMS) { |
| 570 storage_partition_remove_mask |= | 574 storage_partition_remove_mask |= |
| 571 content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS; | 575 content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS; |
| 572 } | 576 } |
| 573 | 577 |
| 574 #if defined(ENABLE_PLUGINS) | 578 #if defined(ENABLE_PLUGINS) |
| 575 // Plugin is data not separated for protected and unprotected web origins. We | 579 // Plugin is data not separated for protected and unprotected web origins. We |
| 576 // check the origin_type_mask_ to prevent unintended deletion. | 580 // check the origin_type_mask_ to prevent unintended deletion. |
| 577 if (remove_mask & REMOVE_PLUGIN_DATA && | 581 if (remove_mask & REMOVE_PLUGIN_DATA && |
| 578 origin_type_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { | 582 origin_type_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 waiting_for_clear_domain_reliability_monitor_ = false; | 1176 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1173 NotifyAndDeleteIfDone(); | 1177 NotifyAndDeleteIfDone(); |
| 1174 } | 1178 } |
| 1175 | 1179 |
| 1176 // static | 1180 // static |
| 1177 BrowsingDataRemover::CallbackSubscription | 1181 BrowsingDataRemover::CallbackSubscription |
| 1178 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( | 1182 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( |
| 1179 const BrowsingDataRemover::Callback& callback) { | 1183 const BrowsingDataRemover::Callback& callback) { |
| 1180 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); | 1184 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); |
| 1181 } | 1185 } |
| OLD | NEW |