| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual base::PlatformFileError CopyInForeignFile( | 105 virtual base::PlatformFileError CopyInForeignFile( |
| 106 FileSystemOperationContext* context, | 106 FileSystemOperationContext* context, |
| 107 const base::FilePath& src_file_path, | 107 const base::FilePath& src_file_path, |
| 108 const FileSystemURL& dest_url) OVERRIDE; | 108 const FileSystemURL& dest_url) OVERRIDE; |
| 109 virtual base::PlatformFileError DeleteFile( | 109 virtual base::PlatformFileError DeleteFile( |
| 110 FileSystemOperationContext* context, | 110 FileSystemOperationContext* context, |
| 111 const FileSystemURL& url) OVERRIDE; | 111 const FileSystemURL& url) OVERRIDE; |
| 112 virtual base::PlatformFileError DeleteDirectory( | 112 virtual base::PlatformFileError DeleteDirectory( |
| 113 FileSystemOperationContext* context, | 113 FileSystemOperationContext* context, |
| 114 const FileSystemURL& url) OVERRIDE; | 114 const FileSystemURL& url) OVERRIDE; |
| 115 virtual base::PlatformFileError CreateSnapshotFile( | 115 virtual webkit_blob::ScopedFile CreateSnapshotFile( |
| 116 FileSystemOperationContext* context, | 116 FileSystemOperationContext* context, |
| 117 const FileSystemURL& url, | 117 const FileSystemURL& url, |
| 118 base::PlatformFileError* error, |
| 118 base::PlatformFileInfo* file_info, | 119 base::PlatformFileInfo* file_info, |
| 119 base::FilePath* platform_path, | 120 base::FilePath* platform_path) OVERRIDE; |
| 120 SnapshotFilePolicy* policy) OVERRIDE; | |
| 121 | 121 |
| 122 // Same as the other CreateFileEnumerator, but with recursive support. | 122 // Same as the other CreateFileEnumerator, but with recursive support. |
| 123 scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( | 123 scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( |
| 124 FileSystemOperationContext* context, | 124 FileSystemOperationContext* context, |
| 125 const FileSystemURL& root_url, | 125 const FileSystemURL& root_url, |
| 126 bool recursive); | 126 bool recursive); |
| 127 | 127 |
| 128 // Returns true if the directory |url| is empty. | 128 // Returns true if the directory |url| is empty. |
| 129 bool IsDirectoryEmpty( | 129 bool IsDirectoryEmpty( |
| 130 FileSystemOperationContext* context, | 130 FileSystemOperationContext* context, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 scoped_ptr<FileSystemOriginDatabase> origin_database_; | 246 scoped_ptr<FileSystemOriginDatabase> origin_database_; |
| 247 base::FilePath file_system_directory_; | 247 base::FilePath file_system_directory_; |
| 248 base::OneShotTimer<ObfuscatedFileUtil> timer_; | 248 base::OneShotTimer<ObfuscatedFileUtil> timer_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 250 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace fileapi | 253 } // namespace fileapi |
| 254 | 254 |
| 255 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 255 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| OLD | NEW |