| OLD | NEW |
| 1 /* Copyright (c) 2012 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 PPB_BrokerTrusted interface, which provides | 7 * This file defines the PPB_BrokerTrusted interface, which provides |
| 8 * access to a trusted broker with greater privileges than the plugin. | 8 * access to a trusted broker with greater privileges than the plugin. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M14 = 0.2 | 12 M14 = 0.2, |
| 13 M25 = 0.3 |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * The PPB_BrokerTrusted interface provides access to a trusted broker | 17 * The PPB_BrokerTrusted interface provides access to a trusted broker |
| 17 * with greater privileges than the plugin. The interface only supports | 18 * with greater privileges than the plugin. The interface only supports |
| 18 * out-of-process plugins and is to be used by proxy implementations. All | 19 * out-of-process plugins and is to be used by proxy implementations. All |
| 19 * functions should be called from the main thread only. | 20 * functions should be called from the main thread only. |
| 20 * | 21 * |
| 21 * A PPB_BrokerTrusted resource represents a connection to the broker. Its | 22 * A PPB_BrokerTrusted resource represents a connection to the broker. Its |
| 22 * lifetime controls the lifetime of the broker, regardless of whether the | 23 * lifetime controls the lifetime of the broker, regardless of whether the |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 55 |
| 55 /** | 56 /** |
| 56 * Gets the handle to the pipe. Use once Connect has completed. Each instance | 57 * Gets the handle to the pipe. Use once Connect has completed. Each instance |
| 57 * of this interface has its own pipe. | 58 * of this interface has its own pipe. |
| 58 * | 59 * |
| 59 * Returns PP_OK on success, and places the result into the given output | 60 * Returns PP_OK on success, and places the result into the given output |
| 60 * parameter. The handle is only set when returning PP_OK. Calling this | 61 * parameter. The handle is only set when returning PP_OK. Calling this |
| 61 * before connect has completed will return PP_ERROR_FAILED. | 62 * before connect has completed will return PP_ERROR_FAILED. |
| 62 */ | 63 */ |
| 63 int32_t GetHandle([in] PP_Resource broker, [out] int32_t handle); | 64 int32_t GetHandle([in] PP_Resource broker, [out] int32_t handle); |
| 65 |
| 66 /** |
| 67 * Returns PP_TRUE if the plugin has permission to launch the broker. A user |
| 68 * must explicitly grant permission to launch the broker for a particular |
| 69 * website. This is done through an infobar that is displayed when |Connect| |
| 70 * is called. This function returns PP_TRUE if the user has already granted |
| 71 * permission to launch the broker for the website containing this plugin |
| 72 * instance. Returns PP_FALSE otherwise. |
| 73 */ |
| 74 [version=0.3] |
| 75 PP_Bool IsAllowed([in] PP_Resource broker); |
| 64 }; | 76 }; |
| 65 | 77 |
| OLD | NEW |