Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: ppapi/api/trusted/ppb_broker_trusted.idl

Issue 11316316: Implement an IsAllowed function in the pepper PPB_Broker_Trusted API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/trusted/ppb_broker_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698