OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
9 #include "ppapi/proxy/host_resource.h" | 9 #include "ppapi/proxy/host_resource.h" |
10 #include "ppapi/proxy/interface_id.h" | 10 #include "ppapi/proxy/interface_id.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return 0; | 117 return 0; |
118 } | 118 } |
119 | 119 |
120 PP_Resource ResourceCreationProxy::CreateFileRef(PP_Resource file_system, | 120 PP_Resource ResourceCreationProxy::CreateFileRef(PP_Resource file_system, |
121 const char* path) { | 121 const char* path) { |
122 return PPB_FileRef_Proxy::CreateProxyResource(file_system, path); | 122 return PPB_FileRef_Proxy::CreateProxyResource(file_system, path); |
123 } | 123 } |
124 | 124 |
125 PP_Resource ResourceCreationProxy::CreateFileSystem( | 125 PP_Resource ResourceCreationProxy::CreateFileSystem( |
126 PP_Instance instance, | 126 PP_Instance instance, |
127 PP_FileSystemType_Dev type) { | 127 PP_FileSystemType type) { |
128 return PPB_FileSystem_Proxy::CreateProxyResource(instance, type); | 128 return PPB_FileSystem_Proxy::CreateProxyResource(instance, type); |
129 } | 129 } |
130 | 130 |
131 PP_Resource ResourceCreationProxy::CreateFlashMenu( | 131 PP_Resource ResourceCreationProxy::CreateFlashMenu( |
132 PP_Instance instance, | 132 PP_Instance instance, |
133 const PP_Flash_Menu* menu_data) { | 133 const PP_Flash_Menu* menu_data) { |
134 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); | 134 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); |
135 } | 135 } |
136 | 136 |
137 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( | 137 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 307 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |
308 #else | 308 #else |
309 *result_image_handle = ImageData::HandleFromInt(handle); | 309 *result_image_handle = ImageData::HandleFromInt(handle); |
310 #endif | 310 #endif |
311 } | 311 } |
312 } | 312 } |
313 } | 313 } |
314 | 314 |
315 } // namespace proxy | 315 } // namespace proxy |
316 } // namespace pp | 316 } // namespace pp |
OLD | NEW |