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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 void DropDatabases(); | 234 void DropDatabases(); |
235 bool InitOriginDatabase(bool create); | 235 bool InitOriginDatabase(bool create); |
236 | 236 |
237 base::PlatformFileError GenerateNewLocalPath( | 237 base::PlatformFileError GenerateNewLocalPath( |
238 FileSystemDirectoryDatabase* db, | 238 FileSystemDirectoryDatabase* db, |
239 FileSystemOperationContext* context, | 239 FileSystemOperationContext* context, |
240 const GURL& origin, | 240 const GURL& origin, |
241 FileSystemType type, | 241 FileSystemType type, |
242 base::FilePath* local_path); | 242 base::FilePath* local_path); |
243 | 243 |
| 244 base::PlatformFileError CreateOrOpenInternal( |
| 245 FileSystemOperationContext* context, |
| 246 const FileSystemURL& url, |
| 247 int file_flags, |
| 248 base::PlatformFile* file_handle, |
| 249 bool* created); |
| 250 |
244 typedef std::map<std::string, FileSystemDirectoryDatabase*> DirectoryMap; | 251 typedef std::map<std::string, FileSystemDirectoryDatabase*> DirectoryMap; |
245 DirectoryMap directories_; | 252 DirectoryMap directories_; |
246 scoped_ptr<FileSystemOriginDatabase> origin_database_; | 253 scoped_ptr<FileSystemOriginDatabase> origin_database_; |
247 base::FilePath file_system_directory_; | 254 base::FilePath file_system_directory_; |
248 base::OneShotTimer<ObfuscatedFileUtil> timer_; | 255 base::OneShotTimer<ObfuscatedFileUtil> timer_; |
249 | 256 |
250 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 257 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
251 }; | 258 }; |
252 | 259 |
253 } // namespace fileapi | 260 } // namespace fileapi |
254 | 261 |
255 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 262 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
OLD | NEW |