| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/fileapi/file_system_file_util_base.h" |
| 6 #include "webkit/fileapi/file_system_operation_context.h" |
| 7 |
| 8 #include "base/file_util.h" |
| 9 |
| 10 namespace fileapi { |
| 11 |
| 12 // static |
| 13 ObfuscatedFileUtil* ObfuscatedFileUtil::GetInstance() { |
| 14 ObfuscatedFileUtil* self = Singleton<ObfuscatedFileUtil>::get(); |
| 15 self->next_file_util_to_obfuscation = QuotaFileUtil::GetInstance(); |
| 16 return self; |
| 17 } |
| 18 |
| 19 base::PlatformFileError ObfuscatedFileUtil::CreateDirectory( |
| 20 const FileSystemOperationContext& fs_context, |
| 21 const FilePath& file_path, |
| 22 bool exclusive, |
| 23 bool recursive) { |
| 24 PlatformFileError error = base::PLATFORM_FILE_OK; |
| 25 // Take information about virtual/real path from fs_context. |
| 26 |
| 27 if (!file_util::CreateDirectory(full_path)) { |
| 28 obfuscator.RollBack(); |
| 29 return base::PLATFORM_FILE_ERROR_FAILED; |
| 30 } |
| 31 |
| 32 // ... |
| 33 } |
| 34 |
| 35 } // namespace fileapi |
| OLD | NEW |