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

Unified Diff: webkit/browser/fileapi/sandbox_file_system_backend.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
Index: webkit/browser/fileapi/sandbox_file_system_backend.cc
diff --git a/webkit/browser/fileapi/sandbox_file_system_backend.cc b/webkit/browser/fileapi/sandbox_file_system_backend.cc
index b71c1c4cf6af63f2145367b5e8d53787db997807..a0ab15d6004c9ab13fdf45fdd9e397a7791c177f 100644
--- a/webkit/browser/fileapi/sandbox_file_system_backend.cc
+++ b/webkit/browser/fileapi/sandbox_file_system_backend.cc
@@ -26,10 +26,10 @@
#include "webkit/common/fileapi/file_system_types.h"
#include "webkit/common/fileapi/file_system_util.h"
-using quota::QuotaManagerProxy;
-using quota::SpecialStoragePolicy;
+using storage::QuotaManagerProxy;
+using storage::SpecialStoragePolicy;
-namespace fileapi {
+namespace storage {
SandboxFileSystemBackend::SandboxFileSystemBackend(
SandboxFileSystemBackendDelegate* delegate)
@@ -49,15 +49,13 @@ void SandboxFileSystemBackend::Initialize(FileSystemContext* context) {
DCHECK(delegate_);
// Set quota observers.
- delegate_->RegisterQuotaUpdateObserver(fileapi::kFileSystemTypeTemporary);
+ delegate_->RegisterQuotaUpdateObserver(storage::kFileSystemTypeTemporary);
delegate_->AddFileAccessObserver(
- fileapi::kFileSystemTypeTemporary,
- delegate_->quota_observer(), NULL);
+ storage::kFileSystemTypeTemporary, delegate_->quota_observer(), NULL);
- delegate_->RegisterQuotaUpdateObserver(fileapi::kFileSystemTypePersistent);
+ delegate_->RegisterQuotaUpdateObserver(storage::kFileSystemTypePersistent);
delegate_->AddFileAccessObserver(
- fileapi::kFileSystemTypePersistent,
- delegate_->quota_observer(), NULL);
+ storage::kFileSystemTypePersistent, delegate_->quota_observer(), NULL);
}
void SandboxFileSystemBackend::ResolveURL(
@@ -111,24 +109,24 @@ FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation(
SpecialStoragePolicy* policy = delegate_->special_storage_policy();
if (policy && policy->IsStorageUnlimited(url.origin()))
- operation_context->set_quota_limit_type(quota::kQuotaLimitTypeUnlimited);
+ operation_context->set_quota_limit_type(storage::kQuotaLimitTypeUnlimited);
else
- operation_context->set_quota_limit_type(quota::kQuotaLimitTypeLimited);
+ operation_context->set_quota_limit_type(storage::kQuotaLimitTypeLimited);
return FileSystemOperation::Create(url, context, operation_context.Pass());
}
bool SandboxFileSystemBackend::SupportsStreaming(
- const fileapi::FileSystemURL& url) const {
+ const storage::FileSystemURL& url) const {
return false;
}
bool SandboxFileSystemBackend::HasInplaceCopyImplementation(
- fileapi::FileSystemType type) const {
+ storage::FileSystemType type) const {
return true;
}
-scoped_ptr<webkit_blob::FileStreamReader>
+scoped_ptr<storage::FileStreamReader>
SandboxFileSystemBackend::CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
@@ -140,7 +138,7 @@ SandboxFileSystemBackend::CreateFileStreamReader(
url, offset, expected_modification_time, context);
}
-scoped_ptr<fileapi::FileStreamWriter>
+scoped_ptr<storage::FileStreamWriter>
SandboxFileSystemBackend::CreateFileStreamWriter(
const FileSystemURL& url,
int64 offset,
@@ -160,4 +158,4 @@ SandboxFileSystemBackend::CreateOriginEnumerator() {
return delegate_->CreateOriginEnumerator();
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « webkit/browser/fileapi/sandbox_file_system_backend.h ('k') | webkit/browser/fileapi/sandbox_file_system_backend_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698