diff options
author | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 19:58:31 +0000 |
---|---|---|
committer | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 20:01:57 +0000 |
commit | cd501a7565dd6054a120fbfe62d45b2299cfcc3b (patch) | |
tree | efe35c31d00f40b2fa9e6dbafd5f9f694f47367e /webkit/browser/fileapi/file_system_quota_client.cc | |
parent | 604e202d3548b701900c3771f9517103bb91486c (diff) | |
download | chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.zip chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.tar.gz chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.tar.bz2 |
Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single storage namespace
As discussed here:
https://groups.google.com/a/chromium.org/forum/#!topic/storage-dev/aQall8GOrS4
BUG=338338
TBR=cevans
NOTRY=true
Review URL: https://codereview.chromium.org/492873002
Cr-Commit-Position: refs/heads/master@{#291485}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/file_system_quota_client.cc')
-rw-r--r-- | webkit/browser/fileapi/file_system_quota_client.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/webkit/browser/fileapi/file_system_quota_client.cc b/webkit/browser/fileapi/file_system_quota_client.cc index 3dce218..f58a522 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 |