| OLD | NEW |
| 1 // Copyright 2011 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // be found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <cstdio> | 5 #include <cstdio> |
| 6 #include <cstdlib> | 6 #include <cstdlib> |
| 7 | 7 |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/ppb_instance.h" | 9 #include "ppapi/c/ppb_instance.h" |
| 10 | 10 |
| 11 #include "native_client/tests/ppapi_geturl/module.h" | 11 #include "native_client/tests/ppapi_geturl/module.h" |
| 12 | 12 |
| 13 // Global PPP functions -------------------------------------------------------- | 13 // Global PPP functions -------------------------------------------------------- |
| (...skipping 16 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 PP_EXPORT const void* PPP_GetInterface(const char* interface_name) { | 32 PP_EXPORT const void* PPP_GetInterface(const char* interface_name) { |
| 33 printf("--- PPP_GetInterface(%s)\n", interface_name); | 33 printf("--- PPP_GetInterface(%s)\n", interface_name); |
| 34 fflush(stdout); | 34 fflush(stdout); |
| 35 Module* module = Module::Get(); | 35 Module* module = Module::Get(); |
| 36 if (NULL == module) | 36 if (NULL == module) |
| 37 return NULL; | 37 return NULL; |
| 38 return module->GetPluginInterface(interface_name); | 38 return module->GetPluginInterface(interface_name); |
| 39 } | 39 } |
| OLD | NEW |