| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_DATABASE_VFS_BACKEND_H_ | 5 #ifndef WEBKIT_DATABASE_VFS_BACKEND_H_ |
| 6 #define WEBKIT_DATABASE_VFS_BACKEND_H_ | 6 #define WEBKIT_DATABASE_VFS_BACKEND_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/process.h" | 9 #include "base/process.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 int desired_flags, | 23 int desired_flags, |
| 24 base::PlatformFile* file_handle); | 24 base::PlatformFile* file_handle); |
| 25 | 25 |
| 26 static int DeleteFile(const FilePath& file_path, bool sync_dir); | 26 static int DeleteFile(const FilePath& file_path, bool sync_dir); |
| 27 | 27 |
| 28 static uint32 GetFileAttributes(const FilePath& file_path); | 28 static uint32 GetFileAttributes(const FilePath& file_path); |
| 29 | 29 |
| 30 static int64 GetFileSize(const FilePath& file_path); | 30 static int64 GetFileSize(const FilePath& file_path); |
| 31 | 31 |
| 32 // Used to make decisions in the DatabaseDispatcherHost. | 32 // Used to make decisions in the DatabaseDispatcherHost. |
| 33 static bool FileTypeIsMainDB(int desired_flags); | |
| 34 static bool FileTypeIsJournal(int desired_flags); | |
| 35 static bool OpenTypeIsReadWrite(int desired_flags); | 33 static bool OpenTypeIsReadWrite(int desired_flags); |
| 36 | 34 |
| 37 private: | 35 private: |
| 38 static bool OpenFileFlagsAreConsistent(int desired_flags); | 36 static bool OpenFileFlagsAreConsistent(int desired_flags); |
| 39 }; | 37 }; |
| 40 | 38 |
| 41 } // namespace webkit_database | 39 } // namespace webkit_database |
| 42 | 40 |
| 43 #endif // WEBKIT_DATABASE_VFS_BACKEND_H_ | 41 #endif // WEBKIT_DATABASE_VFS_BACKEND_H_ |
| OLD | NEW |