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

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

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 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 | Annotate | Revision Log
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_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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper_browsertest.cc ('k') | chrome/browser/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698