Index: ppapi/proxy/ppb_instance_proxy.cc |
diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc |
index 8ea3702f4135ffc83bb1d38fb97857ad1d8f702c..5c648331070826e92d727fc6d218406bb6d11a67 100644 |
--- a/ppapi/proxy/ppb_instance_proxy.cc |
+++ b/ppapi/proxy/ppb_instance_proxy.cc |
@@ -14,6 +14,7 @@ |
#include "ppapi/c/private/pp_content_decryptor.h" |
#include "ppapi/proxy/content_decryptor_private_serializer.h" |
#include "ppapi/proxy/enter_proxy.h" |
+#include "ppapi/proxy/flash_resource.h" |
#include "ppapi/proxy/gamepad_resource.h" |
#include "ppapi/proxy/host_dispatcher.h" |
#include "ppapi/proxy/plugin_dispatcher.h" |
@@ -313,6 +314,22 @@ thunk::PPB_Flash_API* PPB_Instance_Proxy::GetFlashAPI() { |
return static_cast<PPB_Flash_Proxy*>(ip); |
} |
+thunk::PPB_Flash_Functions_API* PPB_Instance_Proxy::GetFlashFunctionsAPI( |
+ PP_Instance instance) { |
+ InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> |
+ GetInstanceData(instance); |
+ if (!data) |
+ return NULL; |
+ |
+ if (!data->flash_resource.get()) { |
+ Connection connection( |
+ PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), |
+ dispatcher()); |
+ data->flash_resource = new FlashResource(connection, instance); |
+ } |
+ return data->flash_resource.get(); |
+} |
+ |
thunk::PPB_Gamepad_API* PPB_Instance_Proxy::GetGamepadAPI( |
PP_Instance instance) { |
InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> |