| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From trusted/ppb_buffer_trusted.idl modified Fri Jul 15 13:34:45 2011. */ | 6 /* From trusted/ppb_buffer_trusted.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ | 8 #ifndef PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ |
| 9 #define PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ | 9 #define PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
| 14 | 14 |
| 15 #define PPB_BUFFER_TRUSTED_INTERFACE_0_1 "PPB_BufferTrusted;0.1" | 15 #define PPB_BUFFER_TRUSTED_INTERFACE_0_1 "PPB_BufferTrusted;0.1" |
| 16 #define PPB_BUFFER_TRUSTED_INTERFACE PPB_BUFFER_TRUSTED_INTERFACE_0_1 | 16 #define PPB_BUFFER_TRUSTED_INTERFACE PPB_BUFFER_TRUSTED_INTERFACE_0_1 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * This file defines the trusted buffer interface. | 20 * This file defines the trusted buffer interface. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
| 26 * @{ | 26 * @{ |
| 27 */ | 27 */ |
| 28 struct PPB_BufferTrusted { | 28 struct PPB_BufferTrusted_0_1 { |
| 29 /** | 29 /** |
| 30 * Returns the internal shared memory pointer associated with the given | 30 * Returns the internal shared memory pointer associated with the given |
| 31 * Buffer resource. Used for proxying. Returns PP_OK on success, or | 31 * Buffer resource. Used for proxying. Returns PP_OK on success, or |
| 32 * PP_ERROR_* on failure. On success, the size in bytes of the shared | 32 * PP_ERROR_* on failure. On success, the size in bytes of the shared |
| 33 * memory region will be placed into |*byte_count|, and the handle for | 33 * memory region will be placed into |*byte_count|, and the handle for |
| 34 * the shared memory in |*handle|. | 34 * the shared memory in |*handle|. |
| 35 */ | 35 */ |
| 36 int32_t (*GetSharedMemory)(PP_Resource buffer, int* handle); | 36 int32_t (*GetSharedMemory)(PP_Resource buffer, int* handle); |
| 37 }; | 37 }; |
| 38 |
| 39 typedef struct PPB_BufferTrusted_0_1 PPB_BufferTrusted; |
| 38 /** | 40 /** |
| 39 * @} | 41 * @} |
| 40 */ | 42 */ |
| 41 | 43 |
| 42 #endif /* PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ */ | 44 #endif /* PPAPI_C_TRUSTED_PPB_BUFFER_TRUSTED_H_ */ |
| 43 | 45 |
| OLD | NEW |