| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" |
| 11 #include "native_client/src/shared/ppapi_proxy/plugin_audio_config.h" | 11 #include "native_client/src/shared/ppapi_proxy/plugin_audio_config.h" |
| 12 #include "native_client/src/shared/ppapi_proxy/plugin_buffer.h" | 12 #include "native_client/src/shared/ppapi_proxy/plugin_buffer.h" |
| 13 #include "native_client/src/shared/ppapi_proxy/plugin_core.h" | 13 #include "native_client/src/shared/ppapi_proxy/plugin_core.h" |
| 14 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_2d.h" | 14 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_2d.h" |
| 15 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" | 15 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" |
| 16 #include "native_client/src/shared/ppapi_proxy/plugin_image_data.h" | 16 #include "native_client/src/shared/ppapi_proxy/plugin_image_data.h" |
| 17 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h" | 17 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h" |
| 18 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_loader.h" |
| 18 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h" | 19 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h" |
| 19 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h" | 20 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h" |
| 20 #include "native_client/src/shared/ppapi_proxy/plugin_url_loader.h" | |
| 21 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" | 21 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" |
| 22 #include "native_client/src/shared/ppapi_proxy/utility.h" | 22 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 23 #include "srpcgen/ppb_rpc.h" | 23 #include "srpcgen/ppb_rpc.h" |
| 24 | 24 |
| 25 namespace ppapi_proxy { | 25 namespace ppapi_proxy { |
| 26 | 26 |
| 27 // SRPC-abstraction wrapper for PPB_GetInterface method. | 27 // SRPC-abstraction wrapper for PPB_GetInterface method. |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // linearly. | 79 // linearly. |
| 80 for (size_t i = 0; i < NACL_ARRAY_SIZE(interface_map); ++i) { | 80 for (size_t i = 0; i < NACL_ARRAY_SIZE(interface_map); ++i) { |
| 81 if (strcmp(interface_name, interface_map[i].name) == 0) { | 81 if (strcmp(interface_name, interface_map[i].name) == 0) { |
| 82 return interface_map[i].func(); | 82 return interface_map[i].func(); |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 return NULL; | 85 return NULL; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace ppapi_proxy | 88 } // namespace ppapi_proxy |
| OLD | NEW |