| Index: content/browser/browser_plugin/browser_plugin_host_helper.h
|
| diff --git a/content/browser/browser_plugin/browser_plugin_host_helper.h b/content/browser/browser_plugin/browser_plugin_host_helper.h
|
| index 3fa95e3ece8e8fab290537a55dca380fdbeade57..b03a6214b2af9973ce14c8ff9cf83411dd50c042 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_host_helper.h
|
| +++ b/content/browser/browser_plugin/browser_plugin_host_helper.h
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "content/common/browser_plugin_info.h"
|
| #include "content/public/browser/render_view_host_observer.h"
|
| #include "ipc/ipc_channel_handle.h"
|
| #include "ipc/ipc_sync_message.h"
|
| @@ -19,6 +20,7 @@ namespace gfx {
|
| class Size;
|
| }
|
|
|
| +struct BrowserPlugin_SwapInfo;
|
| struct ViewHostMsg_UpdateRect_Params;
|
|
|
| namespace content {
|
| @@ -34,7 +36,8 @@ class BrowserPluginHost;
|
| class BrowserPluginHostHelper : public RenderViewHostObserver {
|
| public:
|
| BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host,
|
| - RenderViewHost* render_view_host);
|
| + RenderViewHost* render_view_host,
|
| + const BrowserPluginHostMsg_Surface_Params& params);
|
| virtual ~BrowserPluginHostHelper();
|
|
|
| // Make it public for sync IPCs.
|
| @@ -42,19 +45,21 @@ class BrowserPluginHostHelper : public RenderViewHostObserver {
|
| private:
|
| void OnNavigateGuestFromEmbedder(int container_instance_id,
|
| long long frame_id,
|
| - const std::string& src);
|
| + const std::string& src,
|
| + const BrowserPluginHostMsg_Surface_Params& params);
|
| void OnResizeGuest(int instance_id,
|
| const TransportDIB::Id& damage_buffer_id,
|
| int width,
|
| int height);
|
|
|
| -
|
| void OnUpdateRectACK(int instance_id, int message_id);
|
|
|
| void OnHandleInputEvent(const IPC::SyncMessage& message);
|
|
|
| void OnSetFocus(int container_instance_id, bool focused);
|
|
|
| + void OnSwapBuffersACK(const BrowserPlugin_SwapInfo& info, uint32 sync_point);
|
| +
|
| // Intercepted from the guest renderer process.
|
| void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
|
| void OnHandleInputEventAck(WebKit::WebInputEvent::Type event_type,
|
| @@ -66,6 +71,10 @@ class BrowserPluginHostHelper : public RenderViewHostObserver {
|
|
|
| BrowserPluginHost* browser_plugin_host_;
|
|
|
| + BrowserPluginHostMsg_Surface_Params surface_params_;
|
| +
|
| + friend class CrappyCompositingDelegate;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
|
| };
|
|
|
|
|