| 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..554eca55d4e931e7ec988e25af0626b823efcf11
|
| --- /dev/null
|
| +++ b/webkit/fileapi/obfuscated_file_util.cc
|
| @@ -0,0 +1,35 @@
|
| +// 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 {
|
| +
|
| +// static
|
| +ObfuscatedFileUtil* ObfuscatedFileUtil::GetInstance() {
|
| + ObfuscatedFileUtil* self = Singleton<ObfuscatedFileUtil>::get();
|
| + self->next_file_util_to_obfuscation = QuotaFileUtil::GetInstance();
|
| + return self;
|
| +}
|
| +
|
| +base::PlatformFileError ObfuscatedFileUtil::CreateDirectory(
|
| + const FileSystemOperationContext& fs_context,
|
| + const FilePath& file_path,
|
| + bool exclusive,
|
| + bool recursive) {
|
| + PlatformFileError error = base::PLATFORM_FILE_OK;
|
| + // Take information about virtual/real path from fs_context.
|
| +
|
| + if (!file_util::CreateDirectory(full_path)) {
|
| + obfuscator.RollBack();
|
| + return base::PLATFORM_FILE_ERROR_FAILED;
|
| + }
|
| +
|
| + // ...
|
| +}
|
| +
|
| +} // namespace fileapi
|
|
|