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

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

Issue 207123002: Remove PlatformFile from database/vfs_backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_BROWSER_DATABASE_VFS_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
6 #define WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_ 6 #define WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/files/file.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "webkit/browser/webkit_storage_browser_export.h" 11 #include "webkit/browser/webkit_storage_browser_export.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 namespace webkit_database { 17 namespace webkit_database {
18 18
19 class WEBKIT_STORAGE_BROWSER_EXPORT VfsBackend { 19 class WEBKIT_STORAGE_BROWSER_EXPORT VfsBackend {
20 public: 20 public:
21 static void OpenFile(const base::FilePath& file_path, 21 static base::File OpenFile(const base::FilePath& file_path,
22 int desired_flags, 22 int desired_flags);
23 base::PlatformFile* file_handle);
24 23
25 static void OpenTempFileInDirectory(const base::FilePath& dir_path, 24 static base::File OpenTempFileInDirectory(const base::FilePath& dir_path,
26 int desired_flags, 25 int desired_flags);
27 base::PlatformFile* file_handle);
28 26
29 static int DeleteFile(const base::FilePath& file_path, bool sync_dir); 27 static int DeleteFile(const base::FilePath& file_path, bool sync_dir);
30 28
31 static uint32 GetFileAttributes(const base::FilePath& file_path); 29 static uint32 GetFileAttributes(const base::FilePath& file_path);
32 30
33 static int64 GetFileSize(const base::FilePath& file_path); 31 static int64 GetFileSize(const base::FilePath& file_path);
34 32
35 // Used to make decisions in the DatabaseDispatcherHost. 33 // Used to make decisions in the DatabaseDispatcherHost.
36 static bool OpenTypeIsReadWrite(int desired_flags); 34 static bool OpenTypeIsReadWrite(int desired_flags);
37 35
38 private: 36 private:
39 static bool OpenFileFlagsAreConsistent(int desired_flags); 37 static bool OpenFileFlagsAreConsistent(int desired_flags);
40 }; 38 };
41 39
42 } // namespace webkit_database 40 } // namespace webkit_database
43 41
44 #endif // WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_ 42 #endif // WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698