| 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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 NotifyAndDeleteIfDone(); | 555 NotifyAndDeleteIfDone(); |
| 556 } | 556 } |
| 557 | 557 |
| 558 void BrowsingDataRemover::ClearCookiesOnIOThread( | 558 void BrowsingDataRemover::ClearCookiesOnIOThread( |
| 559 net::URLRequestContextGetter* rq_context) { | 559 net::URLRequestContextGetter* rq_context) { |
| 560 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 560 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 561 net::CookieMonster* cookie_monster = rq_context-> | 561 net::CookieMonster* cookie_monster = rq_context-> |
| 562 GetURLRequestContext()->cookie_store()->GetCookieMonster(); | 562 GetURLRequestContext()->cookie_store()->GetCookieMonster(); |
| 563 if (cookie_monster) { | 563 if (cookie_monster) { |
| 564 cookie_monster->DeleteAllCreatedBetweenAsync( | 564 cookie_monster->DeleteAllCreatedBetweenAsync( |
| 565 delete_begin_, delete_end_, true, | 565 delete_begin_, delete_end_, |
| 566 base::Bind(&BrowsingDataRemover::OnClearedCookies, | 566 base::Bind(&BrowsingDataRemover::OnClearedCookies, |
| 567 base::Unretained(this))); | 567 base::Unretained(this))); |
| 568 } else { | 568 } else { |
| 569 OnClearedCookies(0); | 569 OnClearedCookies(0); |
| 570 } | 570 } |
| 571 } | 571 } |
| OLD | NEW |