OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_CHILD_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_ | |
6 #define CONTENT_COMMON_CHILD_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/platform_file.h" | |
10 | |
11 class GURL; | |
12 | |
13 namespace fileapi { | |
14 struct DirectoryEntry; | |
15 } | |
16 | |
17 namespace WebKit { | |
18 class WebFileSystemCallbacks; | |
19 } | |
20 | |
21 namespace content { | |
22 | |
23 void FileStatusCallbackAdapter( | |
24 WebKit::WebFileSystemCallbacks* callbacks, | |
25 base::PlatformFileError error); | |
26 | |
27 void ReadMetadataCallbackAdapter( | |
28 WebKit::WebFileSystemCallbacks* callbacks, | |
29 const base::PlatformFileInfo& file_info, | |
30 const base::FilePath& platform_path); | |
31 | |
32 void CreateSnapshotFileCallbackAdapter( | |
33 WebKit::WebFileSystemCallbacks* callbacks, | |
34 const base::PlatformFileInfo& file_info, | |
35 const base::FilePath& platform_path); | |
36 | |
37 void ReadDirectoryCallbackAdapater( | |
38 WebKit::WebFileSystemCallbacks* callbacks, | |
39 const std::vector<fileapi::DirectoryEntry>& entries, | |
40 bool has_more); | |
41 | |
42 void OpenFileSystemCallbackAdapter( | |
43 WebKit::WebFileSystemCallbacks* callbacks, | |
44 const std::string& name, const GURL& root); | |
45 | |
46 } // namespace content | |
47 | |
48 #endif // CONTENT_COMMON_CHILD_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_ | |
OLD | NEW |