| 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_PPP_INSTANCE_TRUSTED_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ |
| 6 #define PPAPI_C_TRUSTED_PPP_INSTANCE_TRUSTED_H_ | 6 #define PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 | 9 |
| 10 struct PP_Var; | 10 struct PP_Var; |
| 11 | 11 |
| 12 #define PPP_INSTANCE_TRUSTED_INTERFACE "PPP_Instance_Trusted;0.1" | 12 #define PPP_INSTANCE_PRIVATE_INTERFACE "PPP_Instance_Private;0.1" |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @file | 15 * @file |
| 16 * This file defines the PPP_InstanceTrusted structure; a series of functions | 16 * This file defines the PPP_InstancePrivate structure; a series of functions |
| 17 * that a trusted plugin may implement to provide capabilities only available | 17 * that a trusted plugin may implement to provide capabilities only available |
| 18 * to trusted plugins. | 18 * to trusted plugins. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 /** @addtogroup Interfaces | 22 /** @addtogroup Interfaces |
| 23 * @{ | 23 * @{ |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * The PPP_Instance_Trusted interface contains pointers to a series of | 27 * The PPP_Instance_Private interface contains pointers to a series of |
| 28 * functions that may be implemented in a trusted plugin to provide capabilities | 28 * functions that may be implemented in a trusted plugin to provide capabilities |
| 29 * that aren't possible in untrusted modules. | 29 * that aren't possible in untrusted modules. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 struct PPP_Instance_Trusted { | 32 struct PPP_Instance_Private { |
| 33 /** | 33 /** |
| 34 * GetInstanceObject returns a PP_Var representing the scriptable object for | 34 * GetInstanceObject returns a PP_Var representing the scriptable object for |
| 35 * the given instance. Normally this will be a PPP_Class_Deprecated object | 35 * the given instance. Normally this will be a PPP_Class_Deprecated object |
| 36 * that exposes methods and properties to JavaScript. | 36 * that exposes methods and properties to JavaScript. |
| 37 * | 37 * |
| 38 * On Failure, the returned PP_Var should be a "void" var. | 38 * On Failure, the returned PP_Var should be a "void" var. |
| 39 * | 39 * |
| 40 * The returned PP_Var should have a reference added for the caller, which | 40 * The returned PP_Var should have a reference added for the caller, which |
| 41 * will be responsible for Release()ing that reference. | 41 * will be responsible for Release()ing that reference. |
| 42 * | 42 * |
| 43 * @param[in] instance A PP_Instance indentifying the instance from which the | 43 * @param[in] instance A PP_Instance indentifying the instance from which the |
| 44 * instance object is being requested. | 44 * instance object is being requested. |
| 45 * @return A PP_Var containing scriptable object. | 45 * @return A PP_Var containing scriptable object. |
| 46 */ | 46 */ |
| 47 struct PP_Var (*GetInstanceObject)(PP_Instance instance); | 47 struct PP_Var (*GetInstanceObject)(PP_Instance instance); |
| 48 }; | 48 }; |
| 49 /** | 49 /** |
| 50 * @} | 50 * @} |
| 51 */ | 51 */ |
| 52 | 52 |
| 53 #endif /* PPAPI_C_TRUSTED_PPP_INSTANCE_TRUSTED_H_ */ | 53 #endif /* PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ */ |
| 54 | 54 |
| OLD | NEW |