| 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/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| 11 #include "ppapi/proxy/plugin_resource_tracker.h" | 11 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 12 #include "ppapi/proxy/ppapi_messages.h" | 12 #include "ppapi/proxy/ppapi_messages.h" |
| 13 #include "ppapi/proxy/ppb_audio_input_proxy.h" | 13 #include "ppapi/proxy/ppb_audio_input_proxy.h" |
| 14 #include "ppapi/proxy/ppb_audio_proxy.h" | 14 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 15 #include "ppapi/proxy/ppb_buffer_proxy.h" | 15 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 16 #include "ppapi/proxy/ppb_broker_proxy.h" | 16 #include "ppapi/proxy/ppb_broker_proxy.h" |
| 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" | 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" |
| 18 #include "ppapi/proxy/ppb_file_io_proxy.h" | |
| 19 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 18 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
| 20 #include "ppapi/proxy/ppb_file_system_proxy.h" | 19 #include "ppapi/proxy/ppb_file_system_proxy.h" |
| 21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 20 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 22 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 21 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
| 23 #include "ppapi/proxy/ppb_font_proxy.h" | 22 #include "ppapi/proxy/ppb_font_proxy.h" |
| 24 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 23 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
| 25 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 24 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
| 26 #include "ppapi/proxy/ppb_image_data_proxy.h" | 25 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 27 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 26 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
| 28 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 27 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 115 |
| 117 PP_Resource ResourceCreationProxy::CreateFileChooser( | 116 PP_Resource ResourceCreationProxy::CreateFileChooser( |
| 118 PP_Instance instance, | 117 PP_Instance instance, |
| 119 PP_FileChooserMode_Dev mode, | 118 PP_FileChooserMode_Dev mode, |
| 120 const char* accept_mime_types) { | 119 const char* accept_mime_types) { |
| 121 return PPB_FileChooser_Proxy::CreateProxyResource(instance, mode, | 120 return PPB_FileChooser_Proxy::CreateProxyResource(instance, mode, |
| 122 accept_mime_types); | 121 accept_mime_types); |
| 123 } | 122 } |
| 124 | 123 |
| 125 PP_Resource ResourceCreationProxy::CreateFileIO(PP_Instance instance) { | 124 PP_Resource ResourceCreationProxy::CreateFileIO(PP_Instance instance) { |
| 126 return PPB_FileIO_Proxy::CreateProxyResource(instance); | 125 NOTIMPLEMENTED(); // Not proxied yet. |
| 126 return 0; |
| 127 } | 127 } |
| 128 | 128 |
| 129 PP_Resource ResourceCreationProxy::CreateFileRef(PP_Resource file_system, | 129 PP_Resource ResourceCreationProxy::CreateFileRef(PP_Resource file_system, |
| 130 const char* path) { | 130 const char* path) { |
| 131 return PPB_FileRef_Proxy::CreateProxyResource(file_system, path); | 131 return PPB_FileRef_Proxy::CreateProxyResource(file_system, path); |
| 132 } | 132 } |
| 133 | 133 |
| 134 PP_Resource ResourceCreationProxy::CreateFileSystem( | 134 PP_Resource ResourceCreationProxy::CreateFileSystem( |
| 135 PP_Instance instance, | 135 PP_Instance instance, |
| 136 PP_FileSystemType type) { | 136 PP_FileSystemType type) { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 326 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 327 return dispatcher()->Send(msg); | 327 return dispatcher()->Send(msg); |
| 328 } | 328 } |
| 329 | 329 |
| 330 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 330 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 331 return false; | 331 return false; |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace proxy | 334 } // namespace proxy |
| 335 } // namespace ppapi | 335 } // namespace ppapi |
| OLD | NEW |