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

Side by Side Diff: chrome/browser/browsing_data_database_helper.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_database_helper.h" 5 #include "chrome/browser/browsing_data_database_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void CannedBrowsingDataDatabaseHelper::StartFetching( 201 void CannedBrowsingDataDatabaseHelper::StartFetching(
202 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) { 202 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) {
203 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 203 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
204 DCHECK(!is_fetching_); 204 DCHECK(!is_fetching_);
205 DCHECK_EQ(false, callback.is_null()); 205 DCHECK_EQ(false, callback.is_null());
206 206
207 is_fetching_ = true; 207 is_fetching_ = true;
208 completion_callback_ = callback; 208 completion_callback_ = callback;
209 BrowserThread::PostTask( 209 BrowserThread::PostTask(
210 BrowserThread::WEBKIT, FROM_HERE, 210 BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
211 base::Bind(&CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread, 211 base::Bind(&CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread,
212 this)); 212 this));
213 } 213 }
214 214
215 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {} 215 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {}
216 216
217 void CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread() { 217 void CannedBrowsingDataDatabaseHelper::ConvertInfoInWebKitThread() {
218 base::AutoLock auto_lock(lock_); 218 base::AutoLock auto_lock(lock_);
219 for (std::list<PendingDatabaseInfo>::const_iterator 219 for (std::list<PendingDatabaseInfo>::const_iterator
220 info = pending_database_info_.begin(); 220 info = pending_database_info_.begin();
(...skipping 24 matching lines...) Expand all
245 web_security_origin.toString().utf8(), 245 web_security_origin.toString().utf8(),
246 0, 246 0,
247 base::Time())); 247 base::Time()));
248 } 248 }
249 pending_database_info_.clear(); 249 pending_database_info_.clear();
250 250
251 BrowserThread::PostTask( 251 BrowserThread::PostTask(
252 BrowserThread::UI, FROM_HERE, 252 BrowserThread::UI, FROM_HERE,
253 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); 253 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this));
254 } 254 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/browsing_data_indexed_db_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698