| 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
|
|
|