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
diff --git a/ppapi/ppapi_proxy.gypi b/ppapi/ppapi_proxy.gypi
index 81ec94f..9e8220f8 100644
--- a/ppapi/ppapi_proxy.gypi
+++ b/ppapi/ppapi_proxy.gypi
@@ -23,6 +23,8 @@
           'proxy/audio_input_resource.h',
           'proxy/broker_dispatcher.cc',
           'proxy/broker_dispatcher.h',
+          'proxy/broker_resource.cc',
+          'proxy/broker_resource.h',
           'proxy/browser_font_resource_trusted.cc',
           'proxy/browser_font_resource_trusted.h',
           'proxy/connection.h',