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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 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 | « webkit/browser/fileapi/file_system_quota_client.h ('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 3dce21886a514090d47d2bdf4f3f56731d002366..f58a5220fd0d03065b2461dfb21616f69a07c400 100644
--- a/webkit/browser/fileapi/file_system_quota_client.cc
+++ b/webkit/browser/fileapi/file_system_quota_client.cc
@@ -24,9 +24,9 @@
#include "webkit/browser/fileapi/sandbox_file_system_backend.h"
#include "webkit/common/fileapi/file_system_util.h"
-using quota::StorageType;
+using storage::StorageType;
-namespace fileapi {
+namespace storage {
namespace {
@@ -57,25 +57,24 @@ void GetOriginsForHostOnFileTaskRunner(
quota_util->GetOriginsForHostOnFileTaskRunner(type, host, origins_ptr);
}
-void DidGetOrigins(
- const quota::QuotaClient::GetOriginsCallback& callback,
- std::set<GURL>* origins_ptr) {
+void DidGetOrigins(const storage::QuotaClient::GetOriginsCallback& callback,
+ std::set<GURL>* origins_ptr) {
callback.Run(*origins_ptr);
}
-quota::QuotaStatusCode DeleteOriginOnFileTaskRunner(
+storage::QuotaStatusCode DeleteOriginOnFileTaskRunner(
FileSystemContext* context,
const GURL& origin,
FileSystemType type) {
FileSystemBackend* provider = context->GetFileSystemBackend(type);
if (!provider || !provider->GetQuotaUtil())
- return quota::kQuotaErrorNotSupported;
+ return storage::kQuotaErrorNotSupported;
base::File::Error result =
provider->GetQuotaUtil()->DeleteOriginDataOnFileTaskRunner(
context, context->quota_manager_proxy(), origin, type);
if (result == base::File::FILE_OK)
- return quota::kQuotaStatusOk;
- return quota::kQuotaErrorInvalidModification;
+ return storage::kQuotaStatusOk;
+ return storage::kQuotaErrorInvalidModification;
}
} // namespace
@@ -89,8 +88,8 @@ FileSystemQuotaClient::FileSystemQuotaClient(
FileSystemQuotaClient::~FileSystemQuotaClient() {}
-quota::QuotaClient::ID FileSystemQuotaClient::id() const {
- return quota::QuotaClient::kFileSystem;
+storage::QuotaClient::ID FileSystemQuotaClient::id() const {
+ return storage::QuotaClient::kFileSystem;
}
void FileSystemQuotaClient::OnQuotaManagerDestroyed() {
@@ -197,7 +196,8 @@ void FileSystemQuotaClient::DeleteOriginData(
callback);
}
-bool FileSystemQuotaClient::DoesSupport(quota::StorageType storage_type) const {
+bool FileSystemQuotaClient::DoesSupport(
+ storage::StorageType storage_type) const {
FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
DCHECK(type != kFileSystemTypeUnknown);
return file_system_context_->IsSandboxFileSystem(type);
@@ -207,4 +207,4 @@ base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const {
return file_system_context_->default_file_task_runner();
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « webkit/browser/fileapi/file_system_quota_client.h ('k') | webkit/browser/fileapi/file_system_quota_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698