| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 origin_set_mask_); | 646 origin_set_mask_); |
| 647 content::NotificationService::current()->Notify( | 647 content::NotificationService::current()->Notify( |
| 648 chrome::NOTIFICATION_BROWSING_DATA_REMOVED, | 648 chrome::NOTIFICATION_BROWSING_DATA_REMOVED, |
| 649 content::Source<Profile>(profile_), | 649 content::Source<Profile>(profile_), |
| 650 content::Details<BrowsingDataRemover::NotificationDetails>(&details)); | 650 content::Details<BrowsingDataRemover::NotificationDetails>(&details)); |
| 651 | 651 |
| 652 FOR_EACH_OBSERVER(Observer, observer_list_, OnBrowsingDataRemoverDone()); | 652 FOR_EACH_OBSERVER(Observer, observer_list_, OnBrowsingDataRemoverDone()); |
| 653 | 653 |
| 654 // History requests aren't happy if you delete yourself from the callback. | 654 // History requests aren't happy if you delete yourself from the callback. |
| 655 // As such, we do a delete later. | 655 // As such, we do a delete later. |
| 656 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 656 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 657 } | 657 } |
| 658 | 658 |
| 659 void BrowsingDataRemover::OnClearedHostnameResolutionCache() { | 659 void BrowsingDataRemover::OnClearedHostnameResolutionCache() { |
| 660 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 660 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 661 waiting_for_clear_hostname_resolution_cache_ = false; | 661 waiting_for_clear_hostname_resolution_cache_ = false; |
| 662 NotifyAndDeleteIfDone(); | 662 NotifyAndDeleteIfDone(); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void BrowsingDataRemover::ClearHostnameResolutionCacheOnIOThread( | 665 void BrowsingDataRemover::ClearHostnameResolutionCacheOnIOThread( |
| 666 IOThread* io_thread) { | 666 IOThread* io_thread) { |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1097 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 1098 waiting_for_clear_form_ = false; | 1098 waiting_for_clear_form_ = false; |
| 1099 NotifyAndDeleteIfDone(); | 1099 NotifyAndDeleteIfDone(); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 void BrowsingDataRemover::OnClearedAutofillOriginURLs() { | 1102 void BrowsingDataRemover::OnClearedAutofillOriginURLs() { |
| 1103 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1103 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 1104 waiting_for_clear_autofill_origin_urls_ = false; | 1104 waiting_for_clear_autofill_origin_urls_ = false; |
| 1105 NotifyAndDeleteIfDone(); | 1105 NotifyAndDeleteIfDone(); |
| 1106 } | 1106 } |
| OLD | NEW |