summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 23:03:16 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 23:03:16 +0000
commit95cc0fedf1730672686d6eafd938274ccf2b48ee (patch)
tree640815a2399c2277b2aa7e186fc885ccec92a9de /ppapi/c
parent40b9aa6ac971264a5162260696bf28d08f1fdcb1 (diff)
downloadchromium_src-95cc0fedf1730672686d6eafd938274ccf2b48ee.zip
chromium_src-95cc0fedf1730672686d6eafd938274ccf2b48ee.tar.gz
chromium_src-95cc0fedf1730672686d6eafd938274ccf2b48ee.tar.bz2
Add a private PPB_Talk_Private interface.
It exposes one function that sends a message to the browser and issues a reply. The browser doesn't implement this yet. BUG=117564 TEST= Review URL: https://chromiumcodereview.appspot.com/9700028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/private/ppb_talk_private.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/ppapi/c/private/ppb_talk_private.h b/ppapi/c/private/ppb_talk_private.h
new file mode 100644
index 0000000..6c51325
--- /dev/null
+++ b/ppapi/c/private/ppb_talk_private.h
@@ -0,0 +1,58 @@
+/* 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_talk_private.idl modified Fri Mar 9 11:03:31 2012. */
+
+#ifndef PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_
+#define PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_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"
+
+#define PPB_TALK_PRIVATE_INTERFACE_1_0 "PPB_Talk_Private;1.0"
+#define PPB_TALK_PRIVATE_INTERFACE PPB_TALK_PRIVATE_INTERFACE_1_0
+
+/**
+ * @file
+ * This file contains the <code>PPB_Talk</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * Extra interface for Talk.
+ */
+struct PPB_Talk_Private_1_0 {
+ /**
+ * Creates a Talk_Private resource.
+ */
+ PP_Resource (*Create)(PP_Instance instance);
+ /**
+ * Displays security UI.
+ *
+ * The callback will be issued with PP_OK as the result of the user gave
+ * permission, or PP_ERROR_NOACCESS if the user denied.
+ *
+ * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING
+ * if the request is queued, or PP_ERROR_INPROGRESS if there is already a
+ * request in progress.
+ */
+ int32_t (*GetPermission)(PP_Resource talk_resource,
+ struct PP_CompletionCallback callback);
+};
+
+typedef struct PPB_Talk_Private_1_0 PPB_Talk_Private;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ */
+