Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: webkit/database/vfs_backend.h

Issue 7480033: Remove VfsBackend::FileTypeIs{Journal,MainDB} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698