summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_remover.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 22:24:48 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 22:24:48 +0000
commitd04e76609929454e853117ea8c544774e48d50ed (patch)
tree4f86e1ab973913bf5238d036a496028b0774f6c1 /chrome/browser/browsing_data_remover.cc
parentcc4c9e1dca4f95d322aedff8e520621f4cee5087 (diff)
downloadchromium_src-d04e76609929454e853117ea8c544774e48d50ed.zip
chromium_src-d04e76609929454e853117ea8c544774e48d50ed.tar.gz
chromium_src-d04e76609929454e853117ea8c544774e48d50ed.tar.bz2
Rename ChromeThread to BrowserThread Part14:
- Rename the entries under the first 40 files. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3667002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r--chrome/browser/browsing_data_remover.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index c17baab..bb38bd5 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -180,8 +180,8 @@ void BrowsingDataRemover::Remove(int remove_mask) {
database_tracker_ = profile_->GetDatabaseTracker();
if (database_tracker_.get()) {
waiting_for_clear_databases_ = true;
- ChromeThread::PostTask(
- ChromeThread::FILE, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(
this,
&BrowsingDataRemover::ClearDatabasesOnFILEThread,
@@ -189,16 +189,16 @@ void BrowsingDataRemover::Remove(int remove_mask) {
webkit_db_whitelist));
}
- ChromeThread::PostTask(
- ChromeThread::IO, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
NewRunnableMethod(
profile_->GetTransportSecurityState(),
&net::TransportSecurityState::DeleteSince,
delete_begin_));
waiting_for_clear_appcache_ = true;
- ChromeThread::PostTask(
- ChromeThread::IO, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
NewRunnableMethod(
this,
&BrowsingDataRemover::ClearAppCacheOnIOThread,
@@ -240,8 +240,8 @@ void BrowsingDataRemover::Remove(int remove_mask) {
main_context_getter_ = profile_->GetRequestContext();
media_context_getter_ = profile_->GetRequestContextForMedia();
- ChromeThread::PostTask(
- ChromeThread::IO, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
NewRunnableMethod(this, &BrowsingDataRemover::ClearCacheOnIOThread));
}
@@ -324,7 +324,7 @@ void BrowsingDataRemover::ClearedCache() {
void BrowsingDataRemover::ClearCacheOnIOThread() {
// This function should be called on the IO thread.
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK_EQ(STATE_NONE, next_cache_state_);
DCHECK(main_context_getter_);
DCHECK(media_context_getter_);
@@ -377,8 +377,8 @@ void BrowsingDataRemover::DoClearCache(int rv) {
cache_ = NULL;
// Notify the UI thread that we are done.
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this, &BrowsingDataRemover::ClearedCache));
next_cache_state_ = STATE_NONE;
@@ -394,9 +394,9 @@ void BrowsingDataRemover::DoClearCache(int rv) {
}
void BrowsingDataRemover::OnClearedDatabases(int rv) {
- if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) {
- bool result = ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
+ bool result = BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this, &BrowsingDataRemover::OnClearedDatabases, rv));
DCHECK(result);
return;
@@ -411,7 +411,7 @@ void BrowsingDataRemover::OnClearedDatabases(int rv) {
void BrowsingDataRemover::ClearDatabasesOnFILEThread(base::Time delete_begin,
const std::vector<string16>& webkit_db_whitelist) {
// This function should be called on the FILE thread.
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
int rv = database_tracker_->DeleteDataModifiedSince(
delete_begin, webkit_db_whitelist, &database_cleared_callback_);
@@ -420,9 +420,9 @@ void BrowsingDataRemover::ClearDatabasesOnFILEThread(base::Time delete_begin,
}
void BrowsingDataRemover::OnClearedAppCache() {
- if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) {
- bool result = ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
+ bool result = BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this, &BrowsingDataRemover::OnClearedAppCache));
DCHECK(result);
return;
@@ -434,7 +434,7 @@ void BrowsingDataRemover::OnClearedAppCache() {
void BrowsingDataRemover::ClearAppCacheOnIOThread(base::Time delete_begin,
const std::vector<GURL>& origin_whitelist) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK(waiting_for_clear_appcache_);
appcache_whitelist_ = origin_whitelist;
@@ -482,7 +482,7 @@ void BrowsingDataRemover::OnAppCacheDeleted(int rv) {
}
ChromeAppCacheService* BrowsingDataRemover::GetAppCacheService() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
ChromeURLRequestContext* request_context =
reinterpret_cast<ChromeURLRequestContext*>(
request_context_getter_->GetURLRequestContext());