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 | |
6 /* From dev/ppb_query_policy_dev.idl modified Tue Oct 4 08:47:29 2011. */ | |
7 | |
8 #ifndef PPAPI_C_DEV_PPB_QUERY_POLICY_DEV_H_ | |
9 #define PPAPI_C_DEV_PPB_QUERY_POLICY_DEV_H_ | |
10 | |
11 #include "ppapi/c/pp_instance.h" | |
12 #include "ppapi/c/pp_macros.h" | |
13 #include "ppapi/c/pp_stdint.h" | |
14 | |
15 #define PPB_QUERYPOLICY_DEV_INTERFACE_0_1 "PPB_QueryPolicy(Dev);0.1" | |
16 #define PPB_QUERYPOLICY_DEV_INTERFACE PPB_QUERYPOLICY_DEV_INTERFACE_0_1 | |
17 | |
18 /** | |
19 * @file | |
20 * This file defines the <code>PPB_QueryPolicy_Dev</code> interface. | |
21 */ | |
22 | |
23 | |
24 /** | |
25 * @addtogroup Interfaces | |
26 * @{ | |
27 */ | |
28 struct PPB_QueryPolicy_Dev { | |
29 /** | |
30 * Subscribes the instance to receive updates via the | |
31 * <code>PPP_PolicyUpdate_Dev</code> interface. | |
32 * | |
33 * The plugin is guaranteed to get one update immediately via the | |
34 * <code>PP_PolicyUpdate_Dev</code> interface. This allows the plugin to | |
35 * retrieve the current policy when subscribing for the first time. | |
36 * | |
37 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | |
38 * of a module. | |
39 */ | |
40 void (*SubscribeToPolicyUpdates)(PP_Instance instance); | |
41 }; | |
42 /** | |
43 * @} | |
44 */ | |
45 | |
46 #endif /* PPAPI_C_DEV_PPB_QUERY_POLICY_DEV_H_ */ | |
47 | |
OLD | NEW |