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

Unified Diff: webkit/browser/fileapi/file_system_quota_client.cc

Issue 101393006: FileAPI: Rename *OnFileThread to *OnFileTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/browser/fileapi/file_system_context.cc ('k') | webkit/browser/fileapi/file_system_quota_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_system_quota_client.cc
diff --git a/webkit/browser/fileapi/file_system_quota_client.cc b/webkit/browser/fileapi/file_system_quota_client.cc
index 76725df31a84864defa49368f2b64e9a6a02b21f..6fd0ef5ed17127b2f385876ce2dbdfce18899f5c 100644
--- a/webkit/browser/fileapi/file_system_quota_client.cc
+++ b/webkit/browser/fileapi/file_system_quota_client.cc
@@ -30,7 +30,7 @@ namespace fileapi {
namespace {
-void GetOriginsForTypeOnFileThread(
+void GetOriginsForTypeOnFileTaskRunner(
FileSystemContext* context,
StorageType storage_type,
std::set<GURL>* origins_ptr) {
@@ -40,10 +40,10 @@ void GetOriginsForTypeOnFileThread(
FileSystemQuotaUtil* quota_util = context->GetQuotaUtil(type);
if (!quota_util)
return;
- quota_util->GetOriginsForTypeOnFileThread(type, origins_ptr);
+ quota_util->GetOriginsForTypeOnFileTaskRunner(type, origins_ptr);
}
-void GetOriginsForHostOnFileThread(
+void GetOriginsForHostOnFileTaskRunner(
FileSystemContext* context,
StorageType storage_type,
const std::string& host,
@@ -54,7 +54,7 @@ void GetOriginsForHostOnFileThread(
FileSystemQuotaUtil* quota_util = context->GetQuotaUtil(type);
if (!quota_util)
return;
- quota_util->GetOriginsForHostOnFileThread(type, host, origins_ptr);
+ quota_util->GetOriginsForHostOnFileTaskRunner(type, host, origins_ptr);
}
void DidGetOrigins(
@@ -63,7 +63,7 @@ void DidGetOrigins(
callback.Run(*origins_ptr);
}
-quota::QuotaStatusCode DeleteOriginOnFileThread(
+quota::QuotaStatusCode DeleteOriginOnFileTaskRunner(
FileSystemContext* context,
const GURL& origin,
FileSystemType type) {
@@ -71,7 +71,7 @@ quota::QuotaStatusCode DeleteOriginOnFileThread(
if (!provider || !provider->GetQuotaUtil())
return quota::kQuotaErrorNotSupported;
base::PlatformFileError result =
- provider->GetQuotaUtil()->DeleteOriginDataOnFileThread(
+ provider->GetQuotaUtil()->DeleteOriginDataOnFileTaskRunner(
context, context->quota_manager_proxy(), origin, type);
if (result == base::PLATFORM_FILE_OK)
return quota::kQuotaStatusOk;
@@ -122,7 +122,7 @@ void FileSystemQuotaClient::GetOriginUsage(
file_task_runner(),
FROM_HERE,
// It is safe to pass Unretained(quota_util) since context owns it.
- base::Bind(&FileSystemQuotaUtil::GetOriginUsageOnFileThread,
+ base::Bind(&FileSystemQuotaUtil::GetOriginUsageOnFileTaskRunner,
base::Unretained(quota_util),
file_system_context_,
origin_url,
@@ -145,7 +145,7 @@ void FileSystemQuotaClient::GetOriginsForType(
std::set<GURL>* origins_ptr = new std::set<GURL>();
file_task_runner()->PostTaskAndReply(
FROM_HERE,
- base::Bind(&GetOriginsForTypeOnFileThread,
+ base::Bind(&GetOriginsForTypeOnFileTaskRunner,
file_system_context_,
storage_type,
base::Unretained(origins_ptr)),
@@ -170,7 +170,7 @@ void FileSystemQuotaClient::GetOriginsForHost(
std::set<GURL>* origins_ptr = new std::set<GURL>();
file_task_runner()->PostTaskAndReply(
FROM_HERE,
- base::Bind(&GetOriginsForHostOnFileThread,
+ base::Bind(&GetOriginsForHostOnFileTaskRunner,
file_system_context_,
storage_type,
host,
@@ -190,7 +190,7 @@ void FileSystemQuotaClient::DeleteOriginData(
base::PostTaskAndReplyWithResult(
file_task_runner(),
FROM_HERE,
- base::Bind(&DeleteOriginOnFileThread,
+ base::Bind(&DeleteOriginOnFileTaskRunner,
file_system_context_,
origin,
fs_type),
« no previous file with comments | « webkit/browser/fileapi/file_system_context.cc ('k') | webkit/browser/fileapi/file_system_quota_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698