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

Unified Diff: storage/browser/fileapi/transient_file_util.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « storage/browser/fileapi/transient_file_util.h ('k') | storage/browser/quota/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/transient_file_util.cc
diff --git a/webkit/browser/fileapi/transient_file_util.cc b/storage/browser/fileapi/transient_file_util.cc
similarity index 75%
rename from webkit/browser/fileapi/transient_file_util.cc
rename to storage/browser/fileapi/transient_file_util.cc
index 4cac5caad840c930a82a5d387f95090a69c7822a..e0d078a9fae0af83da9e2c9f77d819c89fa1916d 100644
--- a/webkit/browser/fileapi/transient_file_util.cc
+++ b/storage/browser/fileapi/transient_file_util.cc
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/browser/fileapi/transient_file_util.h"
+#include "storage/browser/fileapi/transient_file_util.h"
#include <string>
#include "base/bind.h"
#include "base/files/file_path.h"
-#include "webkit/browser/fileapi/file_system_operation_context.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-#include "webkit/browser/fileapi/isolated_context.h"
+#include "storage/browser/fileapi/file_system_operation_context.h"
+#include "storage/browser/fileapi/file_system_url.h"
+#include "storage/browser/fileapi/isolated_context.h"
-using webkit_blob::ScopedFile;
+using storage::ScopedFile;
-namespace fileapi {
+namespace storage {
namespace {
@@ -43,13 +43,11 @@ ScopedFile TransientFileUtil::CreateSnapshotFile(
DCHECK(!url.filesystem_id().empty());
ScopedFile scoped_file(
- *platform_path,
- ScopedFile::DELETE_ON_SCOPE_OUT,
- context->task_runner());
+ *platform_path, ScopedFile::DELETE_ON_SCOPE_OUT, context->task_runner());
scoped_file.AddScopeOutCallback(
base::Bind(&RevokeFileSystem, url.filesystem_id()), NULL);
return scoped_file.Pass();
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « storage/browser/fileapi/transient_file_util.h ('k') | storage/browser/quota/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698