Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_remover.h" | 5 #include "chrome/browser/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 358 void BrowsingDataRemover::ClearedNetworkHistory() { | 358 void BrowsingDataRemover::ClearedNetworkHistory() { |
| 359 waiting_for_clear_networking_history_ = false; | 359 waiting_for_clear_networking_history_ = false; |
| 360 | 360 |
| 361 NotifyAndDeleteIfDone(); | 361 NotifyAndDeleteIfDone(); |
| 362 } | 362 } |
| 363 | 363 |
| 364 void BrowsingDataRemover::ClearNetworkingHistory(IOThread* io_thread) { | 364 void BrowsingDataRemover::ClearNetworkingHistory(IOThread* io_thread) { |
| 365 // This function should be called on the IO thread. | 365 // This function should be called on the IO thread. |
| 366 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 366 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 367 | 367 |
| 368 io_thread->ClearNetworkingHistory(); | 368 io_thread->ClearNetworkingHistory(profile_->GetNetworkPredictor()); |
|
willchan no longer on Chromium
2011/08/10 16:10:35
Please delete IOThread::ClearNetworkingHistory().
rpetterson
2011/08/12 03:12:36
Done.
| |
| 369 | 369 |
| 370 // Notify the UI thread that we are done. | 370 // Notify the UI thread that we are done. |
| 371 BrowserThread::PostTask( | 371 BrowserThread::PostTask( |
| 372 BrowserThread::UI, FROM_HERE, | 372 BrowserThread::UI, FROM_HERE, |
| 373 NewRunnableMethod(this, &BrowsingDataRemover::ClearedNetworkHistory)); | 373 NewRunnableMethod(this, &BrowsingDataRemover::ClearedNetworkHistory)); |
| 374 } | 374 } |
| 375 | 375 |
| 376 void BrowsingDataRemover::ClearedCache() { | 376 void BrowsingDataRemover::ClearedCache() { |
| 377 waiting_for_clear_cache_ = false; | 377 waiting_for_clear_cache_ = false; |
| 378 | 378 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 525 NewRunnableMethod( | 525 NewRunnableMethod( |
| 526 this, | 526 this, |
| 527 &BrowsingDataRemover::NotifyAndDeleteIfDone)); | 527 &BrowsingDataRemover::NotifyAndDeleteIfDone)); |
| 528 } | 528 } |
| 529 | 529 |
| 530 void BrowsingDataRemover::OnWaitableEventSignaled( | 530 void BrowsingDataRemover::OnWaitableEventSignaled( |
| 531 base::WaitableEvent* waitable_event) { | 531 base::WaitableEvent* waitable_event) { |
| 532 waiting_for_clear_lso_data_ = false; | 532 waiting_for_clear_lso_data_ = false; |
| 533 NotifyAndDeleteIfDone(); | 533 NotifyAndDeleteIfDone(); |
| 534 } | 534 } |
| OLD | NEW |