| 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 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 7 |
| 8 #include "base/file_path.h" |
| 9 #include "base/platform_file.h" |
| 10 #include "base/singleton.h" |
| 11 #include "webkit/fileapi/file_system_file_util.h" |
| 12 |
| 13 namespace base { |
| 14 class Time; // For TouchFile. TODO remove comment when it's in. |
| 15 } |
| 16 |
| 17 namespace fileapi { |
| 18 |
| 19 using base::PlatformFile; |
| 20 using base::PlatformFileError; |
| 21 |
| 22 class FileSystemOperationContext; |
| 23 |
| 24 class ObfuscatedFileUtil : public FileSystemFileUtil { |
| 25 public: |
| 26 static ObfuscatedFileUtil* GetInstance(); |
| 27 |
| 28 virtual PlatformFileError CreateOrOpen( |
| 29 FileSystemOperationContext* context, |
| 30 const FilePath& file_path, |
| 31 int file_flags, |
| 32 PlatformFile* file_handle, |
| 33 bool *created) OVERRIDE; |
| 34 virtual PlatformFileError CreateDirectory( |
| 35 FileSystemOperationContext* context, |
| 36 const FilePath& file_path, |
| 37 bool exclusive) OVERRIDE; |
| 38 private: |
| 39 ObfuscatedFileUtil() { } |
| 40 friend struct DefaultSingletonTraits<ObfuscatedFileUtil>; |
| 41 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
| 42 }; |
| 43 |
| 44 } // namespace fileapi |
| 45 |
| 46 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| OLD | NEW |