| 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_broker_trusted.idl modified Sat Jul 16 16:51:03 2011. */ | 6 /* From trusted/ppb_broker_trusted.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ | 8 #ifndef PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ |
| 9 #define PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ | 9 #define PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 * The PPB_BrokerTrusted interface provides access to a trusted broker | 33 * The PPB_BrokerTrusted interface provides access to a trusted broker |
| 34 * with greater privileges than the plugin. The interface only supports | 34 * with greater privileges than the plugin. The interface only supports |
| 35 * out-of-process plugins and is to be used by proxy implementations. All | 35 * out-of-process plugins and is to be used by proxy implementations. All |
| 36 * functions should be called from the main thread only. | 36 * functions should be called from the main thread only. |
| 37 * | 37 * |
| 38 * A PPB_BrokerTrusted resource represents a connection to the broker. Its | 38 * A PPB_BrokerTrusted resource represents a connection to the broker. Its |
| 39 * lifetime controls the lifetime of the broker, regardless of whether the | 39 * lifetime controls the lifetime of the broker, regardless of whether the |
| 40 * handle is closed. The handle should be closed before the resource is | 40 * handle is closed. The handle should be closed before the resource is |
| 41 * released. | 41 * released. |
| 42 */ | 42 */ |
| 43 struct PPB_BrokerTrusted { | 43 struct PPB_BrokerTrusted_0_2 { |
| 44 /** | 44 /** |
| 45 * Returns a trusted broker resource. | 45 * Returns a trusted broker resource. |
| 46 */ | 46 */ |
| 47 PP_Resource (*CreateTrusted)(PP_Instance instance); | 47 PP_Resource (*CreateTrusted)(PP_Instance instance); |
| 48 /** | 48 /** |
| 49 * Returns true if the resource is a trusted broker. | 49 * Returns true if the resource is a trusted broker. |
| 50 */ | 50 */ |
| 51 PP_Bool (*IsBrokerTrusted)(PP_Resource resource); | 51 PP_Bool (*IsBrokerTrusted)(PP_Resource resource); |
| 52 /** | 52 /** |
| 53 * Connects to the trusted broker. It may have already | 53 * Connects to the trusted broker. It may have already |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 /** | 68 /** |
| 69 * Gets the handle to the pipe. Use once Connect has completed. Each instance | 69 * Gets the handle to the pipe. Use once Connect has completed. Each instance |
| 70 * of this interface has its own pipe. | 70 * of this interface has its own pipe. |
| 71 * | 71 * |
| 72 * Returns PP_OK on success, and places the result into the given output | 72 * Returns PP_OK on success, and places the result into the given output |
| 73 * parameter. The handle is only set when returning PP_OK. Calling this | 73 * parameter. The handle is only set when returning PP_OK. Calling this |
| 74 * before connect has completed will return PP_ERROR_FAILED. | 74 * before connect has completed will return PP_ERROR_FAILED. |
| 75 */ | 75 */ |
| 76 int32_t (*GetHandle)(PP_Resource broker, int32_t* handle); | 76 int32_t (*GetHandle)(PP_Resource broker, int32_t* handle); |
| 77 }; | 77 }; |
| 78 |
| 79 typedef struct PPB_BrokerTrusted_0_2 PPB_BrokerTrusted; |
| 78 /** | 80 /** |
| 79 * @} | 81 * @} |
| 80 */ | 82 */ |
| 81 | 83 |
| 82 #endif /* PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ */ | 84 #endif /* PPAPI_C_TRUSTED_PPB_BROKER_TRUSTED_H_ */ |
| 83 | 85 |
| OLD | NEW |