Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 1968563003: [Offline pages] Extracting callbacks from the Offline Page Model (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698