OLD | NEW |
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 PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // functions here allows us to implement most resources as a pure "resource | 38 // functions here allows us to implement most resources as a pure "resource |
39 // API", meaning all calls are routed on a per-resource-object basis. The | 39 // API", meaning all calls are routed on a per-resource-object basis. The |
40 // creation functions are not per-object (since there's no object during | 40 // creation functions are not per-object (since there's no object during |
41 // creation) so need functional routing based on the instance ID. | 41 // creation) so need functional routing based on the instance ID. |
42 class ResourceCreationAPI { | 42 class ResourceCreationAPI { |
43 public: | 43 public: |
44 virtual ~ResourceCreationAPI() {} | 44 virtual ~ResourceCreationAPI() {} |
45 | 45 |
46 virtual PP_Resource CreateDirectoryReader(PP_Instance instance, | 46 virtual PP_Resource CreateDirectoryReader(PP_Instance instance, |
47 PP_Resource directory_ref) = 0; | 47 PP_Resource directory_ref) = 0; |
| 48 virtual PP_Resource CreateExtCrxFileSystemPrivate(PP_Instance instance) = 0; |
48 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; | 49 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; |
49 virtual PP_Resource CreateFileRef(PP_Instance instance, | 50 virtual PP_Resource CreateFileRef(PP_Instance instance, |
50 PP_Resource file_system, | 51 PP_Resource file_system, |
51 const char* path) = 0; | 52 const char* path) = 0; |
52 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 53 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
53 PP_FileSystemType type) = 0; | 54 PP_FileSystemType type) = 0; |
| 55 virtual PP_Resource CreateIsolatedFileSystem(PP_Instance instance, |
| 56 const char* fsid) = 0; |
54 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, | 57 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, |
55 PP_InputEvent_Type type, | 58 PP_InputEvent_Type type, |
56 PP_TimeTicks time_stamp, | 59 PP_TimeTicks time_stamp, |
57 struct PP_Var text, | 60 struct PP_Var text, |
58 uint32_t segment_number, | 61 uint32_t segment_number, |
59 const uint32_t* segment_offsets, | 62 const uint32_t* segment_offsets, |
60 int32_t target_segment, | 63 int32_t target_segment, |
61 uint32_t selection_start, | 64 uint32_t selection_start, |
62 uint32_t selection_end) = 0; | 65 uint32_t selection_end) = 0; |
63 virtual PP_Resource CreateKeyboardInputEvent( | 66 virtual PP_Resource CreateKeyboardInputEvent( |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 PP_VideoDecoder_Profile profile) = 0; | 174 PP_VideoDecoder_Profile profile) = 0; |
172 #endif // !defined(OS_NACL) | 175 #endif // !defined(OS_NACL) |
173 | 176 |
174 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 177 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
175 }; | 178 }; |
176 | 179 |
177 } // namespace thunk | 180 } // namespace thunk |
178 } // namespace ppapi | 181 } // namespace ppapi |
179 | 182 |
180 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 183 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |