Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: ppapi/c/trusted/ppp_instance_trusted.h

Issue 6871040: Rename Instance_Trusted to Instance_Private, wire it up in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up based on review comments. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/trusted/ppb_instance_trusted.h ('k') | ppapi/cpp/private/instance_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ppapi/c/trusted/ppb_instance_trusted.h ('k') | ppapi/cpp/private/instance_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698