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

Unified Diff: webkit/fileapi/obfuscated_file_util.cc

Issue 6471019: Stackable file_util for FileAPIs. Sample code for discussion. Incomplete. Cannot be compiled. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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/fileapi/obfuscated_file_util.cc
diff --git a/webkit/fileapi/obfuscated_file_util.cc b/webkit/fileapi/obfuscated_file_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4a09758cb430a051594b5606cf1cf80575e258cc
--- /dev/null
+++ b/webkit/fileapi/obfuscated_file_util.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/fileapi/file_system_file_util_base.h"
+#include "webkit/fileapi/file_system_operation_context.h"
+
+#include "base/file_util.h"
+
+namespace fileapi {
+
+bool ObfuscatedFileUtil::CreateDirectory(
+ const FileSystemOperationContext& fs_context,
+ const FilePath& full_path) {
+ PlatformFileError error = base::PLATFORM_FILE_OK;
+ // Take information about virtual/real path from fs_context.
+
+ if (!file_util::CreateDirectory(full_path)) {
+ error = base::PLATFORM_FILE_ERROR_FAILED;
+ obfuscator.RollBack();
+ return;
+ }
+
+ // Store result/error in fs_context.
+ // e.g. fs_context.SetObfuscationError(error);
+}
+
+} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698