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