| 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 c7d74f2036613d924eed49ae62d5d213d3ea273c..1b14961a8fab7a435dc774458201cd3b16a01ed5 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_host_helper.h
|
| +++ b/content/browser/browser_plugin/browser_plugin_host_helper.h
|
| @@ -8,6 +8,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 BrowserPluginHostMsg_ResizeGuest_Params;
|
| struct ViewHostMsg_UpdateRect_Params;
|
|
|
| @@ -34,16 +36,19 @@ 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.
|
| virtual bool Send(IPC::Message* message) OVERRIDE;
|
| private:
|
| void OnNavigateGuest(int instance_id,
|
| - long long frame_id,
|
| - const std::string& src,
|
| - const gfx::Size& size);
|
| + long long frame_id,
|
| + const std::string& src,
|
| + const gfx::Size& size,
|
| + const BrowserPluginHostMsg_Surface_Params& params);
|
| + void OnSwapBuffersACK(const BrowserPlugin_SwapInfo& info, uint32 sync_point);
|
| void OnResizeGuest(int instance_id,
|
| const BrowserPluginHostMsg_ResizeGuest_Params& params);
|
| void OnUpdateRectACK(int instance_id,
|
| @@ -66,6 +71,10 @@ class BrowserPluginHostHelper : public RenderViewHostObserver {
|
|
|
| BrowserPluginHost* browser_plugin_host_;
|
|
|
| + BrowserPluginHostMsg_Surface_Params surface_params_;
|
| +
|
| + friend class BrowserPluginCompositingDelegate;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
|
| };
|
|
|
|
|