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

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

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 years 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) 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 BrowserThread::PostTask( 228 BrowserThread::PostTask(
229 BrowserThread::IO, FROM_HERE, 229 BrowserThread::IO, FROM_HERE,
230 base::Bind(&BrowsingDataRemover::ClearCookiesOnIOThread, 230 base::Bind(&BrowsingDataRemover::ClearCookiesOnIOThread,
231 base::Unretained(this), base::Unretained(rq_context))); 231 base::Unretained(this), base::Unretained(rq_context)));
232 } 232 }
233 } 233 }
234 234
235 if (remove_mask & REMOVE_LOCAL_STORAGE) { 235 if (remove_mask & REMOVE_LOCAL_STORAGE) {
236 // Remove data such as local databases, STS state, etc. These only can 236 // Remove data such as local databases, STS state, etc. These only can
237 // be removed if a WEBKIT thread exists, so check that first: 237 // be removed if a WEBKIT thread exists, so check that first:
238 if (BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT)) { 238 if (BrowserThread::IsMessageLoopValid(BrowserThread::WEBKIT_DEPRECATED)) {
239 // We assume the end time is now. 239 // We assume the end time is now.
240 profile_->GetWebKitContext()->DeleteDataModifiedSince(delete_begin_); 240 profile_->GetWebKitContext()->DeleteDataModifiedSince(delete_begin_);
241 } 241 }
242 } 242 }
243 243
244 if (remove_mask & REMOVE_INDEXEDDB || remove_mask & REMOVE_WEBSQL || 244 if (remove_mask & REMOVE_INDEXEDDB || remove_mask & REMOVE_WEBSQL ||
245 remove_mask & REMOVE_APPCACHE || remove_mask & REMOVE_FILE_SYSTEMS) { 245 remove_mask & REMOVE_APPCACHE || remove_mask & REMOVE_FILE_SYSTEMS) {
246 // TODO(mkwst): At the moment, we don't have the ability to pass a mask into 246 // TODO(mkwst): At the moment, we don't have the ability to pass a mask into
247 // QuotaManager. Until then, we'll clear all quota-managed data types if any 247 // QuotaManager. Until then, we'll clear all quota-managed data types if any
248 // ought to be cleared. 248 // ought to be cleared.
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 GetURLRequestContext()->cookie_store()->GetCookieMonster(); 622 GetURLRequestContext()->cookie_store()->GetCookieMonster();
623 if (cookie_monster) { 623 if (cookie_monster) {
624 cookie_monster->DeleteAllCreatedBetweenAsync( 624 cookie_monster->DeleteAllCreatedBetweenAsync(
625 delete_begin_, delete_end_, 625 delete_begin_, delete_end_,
626 base::Bind(&BrowsingDataRemover::OnClearedCookies, 626 base::Bind(&BrowsingDataRemover::OnClearedCookies,
627 base::Unretained(this))); 627 base::Unretained(this)));
628 } else { 628 } else {
629 OnClearedCookies(0); 629 OnClearedCookies(0);
630 } 630 }
631 } 631 }
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