| 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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 NotifyIfDone(); | 1311 NotifyIfDone(); |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 void BrowsingDataRemover::OnClearedWebappHistory() { | 1314 void BrowsingDataRemover::OnClearedWebappHistory() { |
| 1315 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1315 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1316 waiting_for_clear_webapp_history_ = false; | 1316 waiting_for_clear_webapp_history_ = false; |
| 1317 NotifyIfDone(); | 1317 NotifyIfDone(); |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 void BrowsingDataRemover::OnClearedOfflinePageData( | 1320 void BrowsingDataRemover::OnClearedOfflinePageData( |
| 1321 offline_pages::OfflinePageModel::DeletePageResult result) { | 1321 offline_pages::DeletePageResult result) { |
| 1322 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1322 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1323 waiting_for_clear_offline_page_data_ = false; | 1323 waiting_for_clear_offline_page_data_ = false; |
| 1324 NotifyIfDone(); | 1324 NotifyIfDone(); |
| 1325 } | 1325 } |
| 1326 #endif | 1326 #endif |
| 1327 | 1327 |
| 1328 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1328 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
| 1329 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1329 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1330 waiting_for_clear_domain_reliability_monitor_ = false; | 1330 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1331 NotifyIfDone(); | 1331 NotifyIfDone(); |
| 1332 } | 1332 } |
| 1333 | 1333 |
| 1334 // static | 1334 // static |
| 1335 BrowsingDataRemover::CallbackSubscription | 1335 BrowsingDataRemover::CallbackSubscription |
| 1336 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( | 1336 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( |
| 1337 const BrowsingDataRemover::Callback& callback) { | 1337 const BrowsingDataRemover::Callback& callback) { |
| 1338 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); | 1338 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); |
| 1339 } | 1339 } |
| OLD | NEW |