summaryrefslogtreecommitdiffstats
path: root/ppapi/c/trusted/ppb_broker_trusted.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/c/trusted/ppb_broker_trusted.h')
-rw-r--r--ppapi/c/trusted/ppb_broker_trusted.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/ppapi/c/trusted/ppb_broker_trusted.h b/ppapi/c/trusted/ppb_broker_trusted.h
index 5cf091f..ed4e372 100644
--- a/ppapi/c/trusted/ppb_broker_trusted.h
+++ b/ppapi/c/trusted/ppb_broker_trusted.h
@@ -2,15 +2,18 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#ifndef PPAPI_C_PPB_BROKER_TRUSTED_H_
-#define PPAPI_C_PPB_BROKER_TRUSTED_H_
-#include "ppapi/c/pp_completion_callback.h"
+/* From trusted/ppb_broker_trusted.idl modified Sat Jul 16 16:51:03 2011. */
+
+#ifndef PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_
+#define PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_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"
-
-#define PPB_BROKER_TRUSTED_INTERFACE "PPB_BrokerTrusted;0.2"
+#include "ppapi/c/pp_stdint.h"
/**
* @file
@@ -18,11 +21,11 @@
* access to a trusted broker with greater privileges than the plugin.
*/
+
/**
* @addtogroup Interfaces
* @{
*/
-
/**
* The PPB_BrokerTrusted interface provides access to a trusted broker
* with greater privileges than the plugin. The interface only supports
@@ -34,17 +37,18 @@
* handle is closed. The handle should be closed before the resource is
* released.
*/
+#define PPB_BROKER_TRUSTED_INTERFACE_0_2 "PPB_BrokerTrusted;0.2"
+#define PPB_BROKER_TRUSTED_INTERFACE PPB_BROKER_TRUSTED_INTERFACE_0_2
+
struct PPB_BrokerTrusted {
/**
* Returns a trusted broker resource.
*/
PP_Resource (*CreateTrusted)(PP_Instance instance);
-
/**
* Returns true if the resource is a trusted broker.
*/
PP_Bool (*IsBrokerTrusted)(PP_Resource resource);
-
/**
* Connects to the trusted broker. It may have already
* been launched by another instance.
@@ -61,7 +65,6 @@ struct PPB_BrokerTrusted {
*/
int32_t (*Connect)(PP_Resource broker,
struct PP_CompletionCallback connect_callback);
-
/**
* Gets the handle to the pipe. Use once Connect has completed. Each instance
* of this interface has its own pipe.
@@ -76,4 +79,5 @@ struct PPB_BrokerTrusted {
* @}
*/
-#endif /* PPAPI_C_PPB_BROKER_TRUSTED_H_ */
+#endif /* PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ */
+