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

Side by Side Diff: ppapi/c/private/ppb_flash_device_id.h

Issue 10535062: Add an asynchronous version of the Flash DeviceID API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/private/ppb_flash.h ('k') | ppapi/cpp/private/flash_device_id.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) 2012 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 private/ppb_flash_device_id.idl modified Fri Jun 1 15:21:17 2012. */
7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_
10
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h"
18
19 #define PPB_FLASH_DEVICEID_INTERFACE_1_0 "PPB_Flash_DeviceID;1.0"
20 #define PPB_FLASH_DEVICEID_INTERFACE PPB_FLASH_DEVICEID_INTERFACE_1_0
21
22 /**
23 * @file
24 * This file contains the <code>PPB_Flash_DeviceID</code> interface.
25 */
26
27
28 /**
29 * @addtogroup Interfaces
30 * @{
31 */
32 struct PPB_Flash_DeviceID_1_0 {
33 PP_Resource (*Create)(PP_Instance instance);
34 /**
35 * Asynchronously computes the device ID. When available, it will place the
36 * string in |*id| and will call the completion callback. On failure the
37 * given var will be PP_VARTYPE_UNDEFINED.
38 */
39 int32_t (*GetDeviceID)(PP_Resource device_id,
40 struct PP_Var* id,
41 struct PP_CompletionCallback callback);
42 };
43
44 typedef struct PPB_Flash_DeviceID_1_0 PPB_Flash_DeviceID;
45 /**
46 * @}
47 */
48
49 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_ */
50
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/cpp/private/flash_device_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698