| 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 #ifndef PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ |
| 6 #define PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_ | 6 #define PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 10 | 10 |
| 11 #define PPB_INSTANCE_TRUSTED_INTERFACE "PPB_Instance_Trusted;0.1" | 11 #define PPB_INSTANCE_PRIVATE_INTERFACE "PPB_Instance_Private;0.1" |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * @file | 14 * @file |
| 15 * This file defines the PPB_Instance_Trusted interface implemented by the | 15 * This file defines the PPB_Instance_Private interface implemented by the |
| 16 * browser and containing pointers to functions available only to trusted plugin | 16 * browser and containing pointers to functions available only to trusted plugin |
| 17 * instances. | 17 * instances. |
| 18 * | 18 * |
| 19 * @addtogroup Interfaces | 19 * @addtogroup Interfaces |
| 20 * @{ | 20 * @{ |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * The PPB_Instance_Trusted interface contains functions available only to | 24 * The PPB_Instance_Private interface contains functions available only to |
| 25 * trusted plugin instances. | 25 * trusted plugin instances. |
| 26 * | 26 * |
| 27 */ | 27 */ |
| 28 struct PPB_Instance_Trusted { | 28 struct PPB_Instance_Private { |
| 29 /** | 29 /** |
| 30 * GetWindowObject is a pointer to a function that determines | 30 * GetWindowObject is a pointer to a function that determines |
| 31 * the DOM window containing this module instance. | 31 * the DOM window containing this module instance. |
| 32 * | 32 * |
| 33 * @param[in] instance A PP_Instance whose WindowObject should be retrieved. | 33 * @param[in] instance A PP_Instance whose WindowObject should be retrieved. |
| 34 * @return A PP_Var containing window object on success. | 34 * @return A PP_Var containing window object on success. |
| 35 */ | 35 */ |
| 36 struct PP_Var (*GetWindowObject)(PP_Instance instance); | 36 struct PP_Var (*GetWindowObject)(PP_Instance instance); |
| 37 | 37 |
| 38 /** | 38 /** |
| (...skipping 24 matching lines...) Expand all Loading... |
| 63 * if execution failed. | 63 * if execution failed. |
| 64 */ | 64 */ |
| 65 struct PP_Var (*ExecuteScript)(PP_Instance instance, | 65 struct PP_Var (*ExecuteScript)(PP_Instance instance, |
| 66 struct PP_Var script, | 66 struct PP_Var script, |
| 67 struct PP_Var* exception); | 67 struct PP_Var* exception); |
| 68 }; | 68 }; |
| 69 /** | 69 /** |
| 70 * @} | 70 * @} |
| 71 */ | 71 */ |
| 72 | 72 |
| 73 #endif /* PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_ */ | 73 #endif /* PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ */ |
| 74 | 74 |
| OLD | NEW |