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_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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 waiting_for_clear_origin_bound_certs_ = true; | 296 waiting_for_clear_origin_bound_certs_ = true; |
297 BrowserThread::PostTask( | 297 BrowserThread::PostTask( |
298 BrowserThread::IO, FROM_HERE, | 298 BrowserThread::IO, FROM_HERE, |
299 base::Bind(&BrowsingDataRemover::ClearOriginBoundCertsOnIOThread, | 299 base::Bind(&BrowsingDataRemover::ClearOriginBoundCertsOnIOThread, |
300 base::Unretained(this), base::Unretained(rq_context))); | 300 base::Unretained(this), base::Unretained(rq_context))); |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 if (remove_mask & REMOVE_LOCAL_STORAGE && | 304 if (remove_mask & REMOVE_LOCAL_STORAGE && |
305 BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT_DEPRECATED)) { | 305 BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT_DEPRECATED)) { |
306 DOMStorageContext* context = | 306 DOMStorageContext* context = BrowserContext::GetDOMStorageContext(profile_); |
307 DOMStorageContext::GetForBrowserContext(profile_); | |
308 BrowserThread::PostTask( | 307 BrowserThread::PostTask( |
309 BrowserThread::WEBKIT_DEPRECATED, FROM_HERE, | 308 BrowserThread::WEBKIT_DEPRECATED, FROM_HERE, |
310 base::Bind(&BrowsingDataRemover::ClearDOMStorageOnWebKitThread, | 309 base::Bind(&BrowsingDataRemover::ClearDOMStorageOnWebKitThread, |
311 base::Unretained(this), make_scoped_refptr(context))); | 310 base::Unretained(this), make_scoped_refptr(context))); |
312 } | 311 } |
313 | 312 |
314 if (remove_mask & REMOVE_INDEXEDDB || remove_mask & REMOVE_WEBSQL || | 313 if (remove_mask & REMOVE_INDEXEDDB || remove_mask & REMOVE_WEBSQL || |
315 remove_mask & REMOVE_APPCACHE || remove_mask & REMOVE_FILE_SYSTEMS) { | 314 remove_mask & REMOVE_APPCACHE || remove_mask & REMOVE_FILE_SYSTEMS) { |
316 if (!quota_manager_) | 315 if (!quota_manager_) |
317 quota_manager_ = content::BrowserContext::GetQuotaManager(profile_); | 316 quota_manager_ = content::BrowserContext::GetQuotaManager(profile_); |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 BrowserThread::UI, FROM_HERE, | 712 BrowserThread::UI, FROM_HERE, |
714 base::Bind(&BrowsingDataRemover::OnClearedOriginBoundCerts, | 713 base::Bind(&BrowsingDataRemover::OnClearedOriginBoundCerts, |
715 base::Unretained(this))); | 714 base::Unretained(this))); |
716 } | 715 } |
717 | 716 |
718 void BrowsingDataRemover::OnClearedOriginBoundCerts() { | 717 void BrowsingDataRemover::OnClearedOriginBoundCerts() { |
719 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 718 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
720 waiting_for_clear_origin_bound_certs_ = false; | 719 waiting_for_clear_origin_bound_certs_ = false; |
721 NotifyAndDeleteIfDone(); | 720 NotifyAndDeleteIfDone(); |
722 } | 721 } |
OLD | NEW |