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

Unified Diff: webkit/fileapi/file_system_quota_client.cc

Issue 10830330: Clean up FileSystemQuotaClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_quota_client.cc
diff --git a/webkit/fileapi/file_system_quota_client.cc b/webkit/fileapi/file_system_quota_client.cc
index 16c8f5d23cfba40ac1ec03fdd84df1572665f3a8..6ed489af724eba1d0362802604b001d06fd61f25 100644
--- a/webkit/fileapi/file_system_quota_client.cc
+++ b/webkit/fileapi/file_system_quota_client.cc
@@ -31,9 +31,10 @@ namespace fileapi {
namespace {
-void GetOriginsForTypeOnFileThread(FileSystemContext* context,
- StorageType storage_type,
- std::set<GURL>* origins_ptr) {
+void GetOriginsForTypeOnFileThread(
+ FileSystemContext* context,
+ StorageType storage_type,
+ std::set<GURL>* origins_ptr) {
FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
DCHECK(type != kFileSystemTypeUnknown);
@@ -43,10 +44,11 @@ void GetOriginsForTypeOnFileThread(FileSystemContext* context,
quota_util->GetOriginsForTypeOnFileThread(type, origins_ptr);
}
-void GetOriginsForHostOnFileThread(FileSystemContext* context,
- StorageType storage_type,
- const std::string& host,
- std::set<GURL>* origins_ptr) {
+void GetOriginsForHostOnFileThread(
+ FileSystemContext* context,
+ StorageType storage_type,
+ const std::string& host,
+ std::set<GURL>* origins_ptr) {
FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
DCHECK(type != kFileSystemTypeUnknown);
@@ -57,13 +59,13 @@ void GetOriginsForHostOnFileThread(FileSystemContext* context,
}
void DidGetOrigins(
- const base::Callback<void(const std::set<GURL>&, StorageType)>& callback,
+ const quota::QuotaClient::GetOriginsCallback& callback,
std::set<GURL>* origins_ptr,
StorageType storage_type) {
callback.Run(*origins_ptr, storage_type);
}
-quota::QuotaStatusCode DeleteOriginOnTargetThread(
+quota::QuotaStatusCode DeleteOriginOnFileThread(
FileSystemContext* context,
const GURL& origin,
FileSystemType type) {
@@ -179,16 +181,17 @@ void FileSystemQuotaClient::GetOriginsForHost(
storage_type));
}
-void FileSystemQuotaClient::DeleteOriginData(const GURL& origin,
- StorageType type,
- const DeletionCallback& callback) {
+void FileSystemQuotaClient::DeleteOriginData(
+ const GURL& origin,
+ StorageType type,
+ const DeletionCallback& callback) {
FileSystemType fs_type = QuotaStorageTypeToFileSystemType(type);
DCHECK(fs_type != kFileSystemTypeUnknown);
base::PostTaskAndReplyWithResult(
file_task_runner(),
FROM_HERE,
- base::Bind(&DeleteOriginOnTargetThread,
+ base::Bind(&DeleteOriginOnFileThread,
file_system_context_,
origin,
fs_type),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698