| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client 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 // Implements the untrusted side of the PPB_GetInterface method. | 5 // Implements the untrusted side of the PPB_GetInterface method. |
| 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_ppb_audio.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" |
| 11 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio_config.h" | 11 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio_config.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 interface_name, NaClSrpcErrorString(srpc_result)); | 120 interface_name, NaClSrpcErrorString(srpc_result)); |
| 121 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { | 121 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { |
| 122 interface_map[index].ppb_interface = NULL; | 122 interface_map[index].ppb_interface = NULL; |
| 123 ppb_interface = NULL; | 123 ppb_interface = NULL; |
| 124 } | 124 } |
| 125 interface_map[index].needs_browser_check = false; | 125 interface_map[index].needs_browser_check = false; |
| 126 return ppb_interface; | 126 return ppb_interface; |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace ppapi_proxy | 129 } // namespace ppapi_proxy |
| OLD | NEW |