| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 void BrowsingDataRemover::Shutdown() { | 328 void BrowsingDataRemover::Shutdown() { |
| 329 history_task_tracker_.TryCancelAll(); | 329 history_task_tracker_.TryCancelAll(); |
| 330 template_url_sub_.reset(); | 330 template_url_sub_.reset(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void BrowsingDataRemover::SetRemoving(bool is_removing) { | 333 void BrowsingDataRemover::SetRemoving(bool is_removing) { |
| 334 DCHECK_NE(is_removing_, is_removing); | 334 DCHECK_NE(is_removing_, is_removing); |
| 335 is_removing_ = is_removing; | 335 is_removing_ = is_removing; |
| 336 FOR_EACH_OBSERVER(Observer, observer_list_, | |
| 337 OnBrowsingDataRemoving(is_removing)); | |
| 338 } | 336 } |
| 339 | 337 |
| 340 void BrowsingDataRemover::Remove(const TimeRange& time_range, | 338 void BrowsingDataRemover::Remove(const TimeRange& time_range, |
| 341 int remove_mask, | 339 int remove_mask, |
| 342 int origin_type_mask) { | 340 int origin_type_mask) { |
| 343 RemoveInternal(time_range, remove_mask, origin_type_mask, | 341 RemoveInternal(time_range, remove_mask, origin_type_mask, |
| 344 std::unique_ptr<RegistrableDomainFilterBuilder>(), nullptr); | 342 std::unique_ptr<RegistrableDomainFilterBuilder>(), nullptr); |
| 345 } | 343 } |
| 346 | 344 |
| 347 void BrowsingDataRemover::RemoveAndReply( | 345 void BrowsingDataRemover::RemoveAndReply( |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 waiting_for_clear_offline_page_data_ = false; | 1490 waiting_for_clear_offline_page_data_ = false; |
| 1493 NotifyIfDone(); | 1491 NotifyIfDone(); |
| 1494 } | 1492 } |
| 1495 #endif | 1493 #endif |
| 1496 | 1494 |
| 1497 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1495 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
| 1498 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1496 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1499 waiting_for_clear_domain_reliability_monitor_ = false; | 1497 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1500 NotifyIfDone(); | 1498 NotifyIfDone(); |
| 1501 } | 1499 } |
| OLD | NEW |