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