OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /* From private/ppb_flash_device_id.idl modified Fri Jun 1 15:21:17 2012. */ | 6 /* From private/ppb_flash_drm.idl modified Mon May 20 13:56:40 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ |
9 #define PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_ | 9 #define PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
17 #include "ppapi/c/pp_var.h" | 17 #include "ppapi/c/pp_var.h" |
18 | 18 |
19 #define PPB_FLASH_DEVICEID_INTERFACE_1_0 "PPB_Flash_DeviceID;1.0" | 19 #define PPB_FLASH_DRM_INTERFACE_1_0 "PPB_Flash_DRM;1.0" |
20 #define PPB_FLASH_DEVICEID_INTERFACE PPB_FLASH_DEVICEID_INTERFACE_1_0 | 20 #define PPB_FLASH_DRM_INTERFACE PPB_FLASH_DRM_INTERFACE_1_0 |
21 | 21 |
22 /** | 22 /** |
23 * @file | 23 * @file |
24 * This file contains the <code>PPB_Flash_DeviceID</code> interface. | 24 * This file contains the <code>PPB_Flash_DRM</code> interface. |
25 */ | 25 */ |
26 | 26 |
27 | 27 |
28 /** | 28 /** |
29 * @addtogroup Interfaces | 29 * @addtogroup Interfaces |
30 * @{ | 30 * @{ |
31 */ | 31 */ |
32 struct PPB_Flash_DeviceID_1_0 { | 32 /** |
| 33 * A resource for performing Flash DRM-related operations. |
| 34 */ |
| 35 struct PPB_Flash_DRM_1_0 { |
| 36 /** |
| 37 * Create a PPB_Flash_DRM resource for performing DRM-related operations in |
| 38 * Flash. |
| 39 */ |
33 PP_Resource (*Create)(PP_Instance instance); | 40 PP_Resource (*Create)(PP_Instance instance); |
34 /** | 41 /** |
35 * Asynchronously computes the device ID. When available, it will place the | 42 * Asynchronously computes the device ID. When available, it will place the |
36 * string in |*id| and will call the completion callback. On failure the | 43 * string in |*id| and will call the completion callback. On failure the |
37 * given var will be PP_VARTYPE_UNDEFINED. | 44 * given var will be PP_VARTYPE_UNDEFINED. |
38 */ | 45 */ |
39 int32_t (*GetDeviceID)(PP_Resource device_id, | 46 int32_t (*GetDeviceID)(PP_Resource drm, |
40 struct PP_Var* id, | 47 struct PP_Var* id, |
41 struct PP_CompletionCallback callback); | 48 struct PP_CompletionCallback callback); |
42 }; | 49 }; |
43 | 50 |
44 typedef struct PPB_Flash_DeviceID_1_0 PPB_Flash_DeviceID; | 51 typedef struct PPB_Flash_DRM_1_0 PPB_Flash_DRM; |
45 /** | 52 /** |
46 * @} | 53 * @} |
47 */ | 54 */ |
48 | 55 |
49 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_ */ | 56 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ */ |
50 | 57 |
OLD | NEW |