OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 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_DATABASE_VFS_BACKEND_H_ |
| 6 #define WEBKIT_DATABASE_VFS_BACKEND_H_ |
| 7 |
| 8 #include "base/platform_file.h" |
| 9 #include "base/process.h" |
| 10 |
| 11 class FilePath; |
| 12 |
| 13 namespace webkit_database { |
| 14 |
| 15 class VfsBackend { |
| 16 public: |
| 17 static void OpenFile( |
| 18 const FilePath& file_name, const FilePath& db_dir, int desired_flags, |
| 19 base::ProcessHandle handle, base::PlatformFile* target_handle, |
| 20 base::PlatformFile* target_dir_handle); |
| 21 static int DeleteFile( |
| 22 const FilePath& file_name, const FilePath& db_dir, bool sync_dir); |
| 23 static uint32 GetFileAttributes(const FilePath& file_name); |
| 24 static int64 GetFileSize(const FilePath& file_name); |
| 25 |
| 26 private: |
| 27 static bool OpenFileFlagsAreConsistent( |
| 28 const FilePath& file_name, const FilePath& db_dir, int desired_flags); |
| 29 }; |
| 30 |
| 31 } // namespace webkit_database |
| 32 |
| 33 #endif // WEBKIT_DATABASE_VFS_BACKEND_H_ |
OLD | NEW |