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

Side by Side Diff: webkit/browser/fileapi/local_file_util.h

Issue 274903002: Remove PlatformFile from fileapi::FileSystemFileUtil (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 6 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILEAPI_LOCAL_FILE_UTIL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/platform_file.h"
12 #include "webkit/browser/fileapi/file_system_file_util.h" 11 #include "webkit/browser/fileapi/file_system_file_util.h"
13 #include "webkit/browser/webkit_storage_browser_export.h" 12 #include "webkit/browser/webkit_storage_browser_export.h"
14 13
15 namespace base { 14 namespace base {
16 class Time; 15 class Time;
17 } 16 }
18 17
19 class GURL; 18 class GURL;
20 19
21 namespace fileapi { 20 namespace fileapi {
22 21
23 class FileSystemOperationContext; 22 class FileSystemOperationContext;
24 class FileSystemURL; 23 class FileSystemURL;
25 24
26 // An instance of this class is created and owned by *FileSystemBackend. 25 // An instance of this class is created and owned by *FileSystemBackend.
27 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileUtil 26 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileUtil
28 : public FileSystemFileUtil { 27 : public FileSystemFileUtil {
29 public: 28 public:
30 LocalFileUtil(); 29 LocalFileUtil();
31 virtual ~LocalFileUtil(); 30 virtual ~LocalFileUtil();
32 31
33 virtual base::File::Error CreateOrOpen( 32 virtual base::File CreateOrOpen(
34 FileSystemOperationContext* context, 33 FileSystemOperationContext* context,
35 const FileSystemURL& url, 34 const FileSystemURL& url,
36 int file_flags, 35 int file_flags) OVERRIDE;
37 base::PlatformFile* file_handle,
38 bool* created) OVERRIDE;
39 virtual base::File::Error Close(
40 FileSystemOperationContext* context,
41 base::PlatformFile file) OVERRIDE;
42 virtual base::File::Error EnsureFileExists( 36 virtual base::File::Error EnsureFileExists(
43 FileSystemOperationContext* context, 37 FileSystemOperationContext* context,
44 const FileSystemURL& url, bool* created) OVERRIDE; 38 const FileSystemURL& url, bool* created) OVERRIDE;
45 virtual base::File::Error CreateDirectory( 39 virtual base::File::Error CreateDirectory(
46 FileSystemOperationContext* context, 40 FileSystemOperationContext* context,
47 const FileSystemURL& url, 41 const FileSystemURL& url,
48 bool exclusive, 42 bool exclusive,
49 bool recursive) OVERRIDE; 43 bool recursive) OVERRIDE;
50 virtual base::File::Error GetFileInfo( 44 virtual base::File::Error GetFileInfo(
51 FileSystemOperationContext* context, 45 FileSystemOperationContext* context,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 base::File::Info* file_info, 85 base::File::Info* file_info,
92 base::FilePath* platform_path) OVERRIDE; 86 base::FilePath* platform_path) OVERRIDE;
93 87
94 private: 88 private:
95 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 89 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
96 }; 90 };
97 91
98 } // namespace fileapi 92 } // namespace fileapi
99 93
100 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ 94 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_file_util.h ('k') | webkit/browser/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698