diff options
Diffstat (limited to 'content/renderer/pepper_plugin_delegate_impl.cc')
-rw-r--r-- | content/renderer/pepper_plugin_delegate_impl.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc index 96c775c..b598a96 100644 --- a/content/renderer/pepper_plugin_delegate_impl.cc +++ b/content/renderer/pepper_plugin_delegate_impl.cc @@ -53,6 +53,7 @@ #include "webkit/plugins/ppapi/ppb_file_io_impl.h" #include "webkit/plugins/ppapi/plugin_module.h" #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" +#include "webkit/plugins/ppapi/ppb_broker_impl.h" #include "webkit/plugins/ppapi/ppb_flash_impl.h" #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" @@ -556,6 +557,24 @@ PepperPluginDelegateImpl::CreateAudio( } } +webkit::ppapi::PluginDelegate::PpapiBroker* +PepperPluginDelegateImpl::ConnectToPpapiBroker( + webkit::ppapi::PluginInstance* instance, + webkit::ppapi::PPB_Broker_Impl* client) { + CHECK(instance); + CHECK(client); + + // TODO(ddorwin): Add IPC to broker process to do the following. + // 1) Check if there is an existing broker for instance->module(). + // 2) If not, create. + // 3) broker->Connect(client). + // * Asynchronously launches broker if necessary, establishes pipe, and + // calls BrokerConnected. + // 4) Return pointer to broker. + + return NULL; +} + bool PepperPluginDelegateImpl::RunFileChooser( const WebKit::WebFileChooserParams& params, WebKit::WebFileChooserCompletion* chooser_completion) { |