| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 /** | 6 /** |
| 7 * This file defines the trusted buffer interface. | 7 * This file defines the trusted buffer interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M14 = 0.1 | 11 M14 = 0.1 |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 [macro="PPB_BUFFER_TRUSTED_INTERFACE"] | 14 [macro="PPB_BUFFER_TRUSTED_INTERFACE"] |
| 15 interface PPB_BufferTrusted { | 15 interface PPB_BufferTrusted { |
| 16 /** | 16 /** |
| 17 * Returns the internal shared memory pointer associated with the given | 17 * Returns the internal shared memory pointer associated with the given |
| 18 * Buffer resource. Used for proxying. Returns PP_OK on success, or | 18 * Buffer resource. Used for proxying. Returns PP_OK on success, or |
| 19 * PP_ERROR_* on failure. On success, the size in bytes of the shared | 19 * PP_ERROR_* on failure. On success, the size in bytes of the shared |
| 20 * memory region will be placed into |*byte_count|, and the handle for | 20 * memory region will be placed into |*byte_count|, and the handle for |
| 21 * the shared memory in |*handle|. | 21 * the shared memory in |*handle|. |
| 22 */ | 22 */ |
| 23 int32_t GetSharedMemory([in] PP_Resource buffer, [out] handle_t handle); | 23 int32_t GetSharedMemory([in] PP_Resource buffer, [out] handle_t handle); |
| 24 }; | 24 }; |
| 25 | 25 |
| OLD | NEW |