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

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

Issue 203074: Refactor the DB code to make all DB layout tests pass on test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « webkit/DEPS ('k') | webkit/database/vfs_backend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « webkit/DEPS ('k') | webkit/database/vfs_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698