diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-10 19:28:46 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-10 19:28:46 +0000 |
commit | 83d12c8ddc0ce79975db70edb0ffd35305f49ee2 (patch) | |
tree | 79bd1b1125f32b97616d9b1ca7ad2555d6fa1e04 /ppapi/thunk/interfaces_ppb_private.h | |
parent | e981b3fa852cdbf3bb098e4ebf2d1def635b90c2 (diff) | |
download | chromium_src-83d12c8ddc0ce79975db70edb0ffd35305f49ee2.zip chromium_src-83d12c8ddc0ce79975db70edb0ffd35305f49ee2.tar.gz chromium_src-83d12c8ddc0ce79975db70edb0ffd35305f49ee2.tar.bz2 |
Implement an IsAllowed function in the pepper PPB_Broker_Trusted API
Flash sometimes needs to synchronously know if it can launch the broker, otherwise it will try to launch the broker when it shouldn't, and end up popping an infobar. This adds an IsAllowed function to synchronously test whether the broker is allowed to launch without popping the infobar.
Note that the document URL of the plugin instance is needed in order to check the broker permissions in the browser process. This is only available in the renderer process. In order to avoid an extra hop to the renderer process just to get this URL, it is sent to the browser (with the render view ID) upon initialization of the instance when the instance is registered with the browser process.
BUG=163248
Review URL: https://chromiumcodereview.appspot.com/11316316
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/interfaces_ppb_private.h')
-rw-r--r-- | ppapi/thunk/interfaces_ppb_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/thunk/interfaces_ppb_private.h b/ppapi/thunk/interfaces_ppb_private.h index 48df662..e1c53ec 100644 --- a/ppapi/thunk/interfaces_ppb_private.h +++ b/ppapi/thunk/interfaces_ppb_private.h @@ -20,6 +20,8 @@ PROXIED_API(PPB_Broker) PROXIED_IFACE(PPB_Broker, PPB_BROKER_TRUSTED_INTERFACE_0_2, PPB_BrokerTrusted_0_2) +PROXIED_IFACE(PPB_Broker, PPB_BROKER_TRUSTED_INTERFACE_0_3, + PPB_BrokerTrusted_0_3) PROXIED_IFACE(PPB_Instance, PPB_BROWSERFONT_TRUSTED_INTERFACE_1_0, PPB_BrowserFont_Trusted_1_0) PROXIED_IFACE(PPB_Instance, |