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

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

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix Created 8 years, 5 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_FILEAPI_LOCAL_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 19 matching lines...) Expand all
30 30
31 using base::PlatformFile; 31 using base::PlatformFile;
32 using base::PlatformFileError; 32 using base::PlatformFileError;
33 33
34 class FileSystemOperationContext; 34 class FileSystemOperationContext;
35 class FileSystemURL; 35 class FileSystemURL;
36 36
37 // An instance of this class is created and owned by *MountPointProvider. 37 // An instance of this class is created and owned by *MountPointProvider.
38 class FILEAPI_EXPORT_PRIVATE LocalFileUtil : public FileSystemFileUtil { 38 class FILEAPI_EXPORT_PRIVATE LocalFileUtil : public FileSystemFileUtil {
39 public: 39 public:
40 // |underlying_file_util| is owned by the instance. It will be deleted by
41 // the owner instance. For example, it can be instanciated as follows:
42 // FileSystemFileUtil* file_util = new LocalFileUtil(new NativeFileUtil());
43 LocalFileUtil(); 40 LocalFileUtil();
44 virtual ~LocalFileUtil(); 41 virtual ~LocalFileUtil();
45 42
46 virtual PlatformFileError CreateOrOpen( 43 virtual PlatformFileError CreateOrOpen(
47 FileSystemOperationContext* context, 44 FileSystemOperationContext* context,
48 const FileSystemURL& url, 45 const FileSystemURL& url,
49 int file_flags, 46 int file_flags,
50 PlatformFile* file_handle, 47 PlatformFile* file_handle,
51 bool* created) OVERRIDE; 48 bool* created) OVERRIDE;
52 virtual PlatformFileError Close( 49 virtual PlatformFileError Close(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 FileSystemURL GetLocalPath( 116 FileSystemURL GetLocalPath(
120 FileSystemOperationContext* context, 117 FileSystemOperationContext* context,
121 const FileSystemURL& url); 118 const FileSystemURL& url);
122 119
123 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 120 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
124 }; 121 };
125 122
126 } // namespace fileapi 123 } // namespace fileapi
127 124
128 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 125 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_test_helper.cc ('k') | webkit/fileapi/sandbox_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698