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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/trusted/ppb_broker_trusted.idl
diff --git a/ppapi/api/trusted/ppb_broker_trusted.idl b/ppapi/api/trusted/ppb_broker_trusted.idl
index 54039c42213079c02bc2051cb7bc96b6a77fca7a..023d9fcff075a33e21262b20f0afd6dad42fa2dc 100644
--- a/ppapi/api/trusted/ppb_broker_trusted.idl
+++ b/ppapi/api/trusted/ppb_broker_trusted.idl
@@ -9,7 +9,8 @@
*/
label Chrome {
- M14 = 0.2
+ M14 = 0.2,
+ M25 = 0.3
};
/**
@@ -61,5 +62,16 @@ interface PPB_BrokerTrusted {
* before connect has completed will return PP_ERROR_FAILED.
*/
int32_t GetHandle([in] PP_Resource broker, [out] int32_t handle);
+
+ /**
+ * Returns PP_TRUE if the plugin has permission to launch the broker. A user
+ * must explicitly grant permission to launch the broker for a particular
+ * website. This is done through an infobar that is displayed when |Connect|
+ * is called. This function returns PP_TRUE if the user has already granted
+ * permission to launch the broker for the website containing this plugin
+ * instance. Returns PP_FALSE otherwise.
+ */
+ [version=0.3]
+ PP_Bool IsAllowed([in] PP_Resource broker);
};
« 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