Fix build break
[chromium-blink-merge.git] / ppapi / c / private / ppb_talk_private.h
blob5783d8b64a69520b19307551a1c695609c8a7ef3
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 */
6 /* From private/ppb_talk_private.idl modified Fri Nov 9 14:42:36 2012. */
8 #ifndef PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_
11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_stdint.h"
17 #define PPB_TALK_PRIVATE_INTERFACE_1_0 "PPB_Talk_Private;1.0"
18 #define PPB_TALK_PRIVATE_INTERFACE PPB_TALK_PRIVATE_INTERFACE_1_0
20 /**
21 * @file
22 * This file contains the <code>PPB_Talk</code> interface.
26 /**
27 * @addtogroup Interfaces
28 * @{
30 /**
31 * Extra interface for Talk.
33 struct PPB_Talk_Private_1_0 {
34 /**
35 * Creates a Talk_Private resource.
37 PP_Resource (*Create)(PP_Instance instance);
38 /**
39 * Displays security UI.
41 * The callback will be issued with 1 as the result if the user gave
42 * permission, or 0 if the user denied.
44 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING
45 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a
46 * request in progress.
48 int32_t (*GetPermission)(PP_Resource talk_resource,
49 struct PP_CompletionCallback callback);
52 typedef struct PPB_Talk_Private_1_0 PPB_Talk_Private;
53 /**
54 * @}
57 #endif /* PPAPI_C_PRIVATE_PPB_TALK_PRIVATE_H_ */