OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_FILE_IO_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_IO_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_IO_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_IO_H_ |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/scoped_callback_factory.h" | 10 #include "base/scoped_callback_factory.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Returns a pointer to the interface implementing PPB_FileIO that is exposed | 31 // Returns a pointer to the interface implementing PPB_FileIO that is exposed |
32 // to the plugin. | 32 // to the plugin. |
33 static const PPB_FileIO_Dev* GetInterface(); | 33 static const PPB_FileIO_Dev* GetInterface(); |
34 | 34 |
35 // Returns a pointer to the interface implementing PPB_FileIOTrusted that is | 35 // Returns a pointer to the interface implementing PPB_FileIOTrusted that is |
36 // exposed to the plugin. | 36 // exposed to the plugin. |
37 static const PPB_FileIOTrusted_Dev* GetTrustedInterface(); | 37 static const PPB_FileIOTrusted_Dev* GetTrustedInterface(); |
38 | 38 |
39 // Resource overrides. | 39 // Resource overrides. |
40 FileIO* AsFileIO() { return this; } | 40 virtual FileIO* AsFileIO(); |
41 | 41 |
42 // PPB_FileIO implementation. | 42 // PPB_FileIO implementation. |
43 int32_t Open(FileRef* file_ref, | 43 int32_t Open(FileRef* file_ref, |
44 int32_t open_flags, | 44 int32_t open_flags, |
45 PP_CompletionCallback callback); | 45 PP_CompletionCallback callback); |
46 int32_t Query(PP_FileInfo_Dev* info, | 46 int32_t Query(PP_FileInfo_Dev* info, |
47 PP_CompletionCallback callback); | 47 PP_CompletionCallback callback); |
48 int32_t Touch(PP_Time last_access_time, | 48 int32_t Touch(PP_Time last_access_time, |
49 PP_Time last_modified_time, | 49 PP_Time last_modified_time, |
50 PP_CompletionCallback callback); | 50 PP_CompletionCallback callback); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 base::PlatformFile file_; | 85 base::PlatformFile file_; |
86 PP_FileSystemType_Dev file_system_type_; | 86 PP_FileSystemType_Dev file_system_type_; |
87 | 87 |
88 PP_CompletionCallback callback_; | 88 PP_CompletionCallback callback_; |
89 PP_FileInfo_Dev* info_; | 89 PP_FileInfo_Dev* info_; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace pepper | 92 } // namespace pepper |
93 | 93 |
94 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_IO_H_ | 94 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_IO_H_ |
OLD | NEW |