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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_flash_device_id.h
diff --git a/ppapi/c/private/ppb_flash_device_id.h b/ppapi/c/private/ppb_flash_device_id.h
new file mode 100644
index 0000000000000000000000000000000000000000..33d1ba7f59ecdd537496fc0d25bfa550e4ed0e64
--- /dev/null
+++ b/ppapi/c/private/ppb_flash_device_id.h
@@ -0,0 +1,50 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* From private/ppb_flash_device_id.idl modified Fri Jun 1 15:21:17 2012. */
+
+#ifndef PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_
+#define PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_
+
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_completion_callback.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
+
+#define PPB_FLASH_DEVICEID_INTERFACE_1_0 "PPB_Flash_DeviceID;1.0"
+#define PPB_FLASH_DEVICEID_INTERFACE PPB_FLASH_DEVICEID_INTERFACE_1_0
+
+/**
+ * @file
+ * This file contains the <code>PPB_Flash_DeviceID</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+struct PPB_Flash_DeviceID_1_0 {
+ PP_Resource (*Create)(PP_Instance instance);
+ /**
+ * Asynchronously computes the device ID. When available, it will place the
+ * string in |*id| and will call the completion callback. On failure the
+ * given var will be PP_VARTYPE_UNDEFINED.
+ */
+ int32_t (*GetDeviceID)(PP_Resource device_id,
+ struct PP_Var* id,
+ struct PP_CompletionCallback callback);
+};
+
+typedef struct PPB_Flash_DeviceID_1_0 PPB_Flash_DeviceID;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPB_FLASH_DEVICE_ID_H_ */
+
« 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