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

Unified Diff: webkit/browser/fileapi/sandbox_file_stream_writer.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_stream_writer.cc
diff --git a/webkit/browser/fileapi/sandbox_file_stream_writer.cc b/webkit/browser/fileapi/sandbox_file_stream_writer.cc
index f5efaa634fa6c725c258c348d8c84dc769cc0903..8fd39bc33124e8a90cab144f60307c38f5fafffc 100644
--- a/webkit/browser/fileapi/sandbox_file_stream_writer.cc
+++ b/webkit/browser/fileapi/sandbox_file_stream_writer.cc
@@ -16,7 +16,7 @@
#include "webkit/browser/quota/quota_manager_proxy.h"
#include "webkit/common/fileapi/file_system_util.h"
-namespace fileapi {
+namespace storage {
namespace {
@@ -114,7 +114,7 @@ void SandboxFileStreamWriter::DidCreateSnapshotFile(
base::File::Error file_error,
const base::File::Info& file_info,
const base::FilePath& platform_path,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
+ const scoped_refptr<storage::ShareableFileReference>& file_ref) {
DCHECK(!file_ref.get());
if (CancelIfRequested())
@@ -142,7 +142,7 @@ void SandboxFileStreamWriter::DidCreateSnapshotFile(
initial_offset_,
FileStreamWriter::OPEN_EXISTING_FILE));
- quota::QuotaManagerProxy* quota_manager_proxy =
+ storage::QuotaManagerProxy* quota_manager_proxy =
file_system_context_->quota_manager_proxy();
if (!quota_manager_proxy) {
// If we don't have the quota manager or the requested filesystem type
@@ -162,11 +162,12 @@ void SandboxFileStreamWriter::DidCreateSnapshotFile(
void SandboxFileStreamWriter::DidGetUsageAndQuota(
const net::CompletionCallback& callback,
- quota::QuotaStatusCode status,
- int64 usage, int64 quota) {
+ storage::QuotaStatusCode status,
+ int64 usage,
+ int64 quota) {
if (CancelIfRequested())
return;
- if (status != quota::kQuotaStatusOk) {
+ if (status != storage::kQuotaStatusOk) {
LOG(WARNING) << "Got unexpected quota error : " << status;
callback.Run(net::ERR_FAILED);
return;
@@ -243,4 +244,4 @@ int SandboxFileStreamWriter::Flush(const net::CompletionCallback& callback) {
return local_file_writer_->Flush(callback);
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « webkit/browser/fileapi/sandbox_file_stream_writer.h ('k') | webkit/browser/fileapi/sandbox_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698