| Index: content/browser/browser_plugin/browser_plugin_host.h
|
| diff --git a/content/browser/browser_plugin/browser_plugin_host.h b/content/browser/browser_plugin/browser_plugin_host.h
|
| index a5cf4f249331dfc3a34ef0a5e6ab28cf2dd4748b..c0cb12eb44bf4631c03ca9599282899718c8cb91 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_host.h
|
| +++ b/content/browser/browser_plugin/browser_plugin_host.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/id_map.h"
|
| +#include "content/common/browser_plugin_info.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| #include "content/public/browser/web_contents_delegate.h"
|
| @@ -19,6 +20,7 @@
|
| #include "ui/gfx/size.h"
|
| #include "ui/surface/transport_dib.h"
|
|
|
| +struct BrowserPlugin_SwapInfo;
|
| class WebContentsImpl;
|
| struct ViewHostMsg_UpdateRect_Params;
|
|
|
| @@ -54,7 +56,8 @@ class BrowserPluginHost : public WebContentsObserver,
|
| void NavigateGuestFromEmbedder(RenderViewHost* render_view_host,
|
| int container_instance_id,
|
| long long frame_id,
|
| - const std::string& src);
|
| + const std::string& src,
|
| + const BrowserPluginHostMsg_Surface_Params& params);
|
|
|
| void ResizeGuest(int container_instance_id,
|
| TransportDIB* damage_buffer,
|
| @@ -80,6 +83,11 @@ class BrowserPluginHost : public WebContentsObserver,
|
| TransportDIB* damage_buffer() const { return damage_buffer_; }
|
| const gfx::Size& damage_buffer_size() const { return damage_buffer_size_; }
|
|
|
| + void SendBuffersSwappedToEmbedder(uint64 surface_handle, const BrowserPlugin_SwapInfo& info);
|
| +
|
| + void set_surface_params(const BrowserPluginHostMsg_Surface_Params& params) {
|
| + surface_params_ = params;
|
| + }
|
|
|
| private:
|
| typedef std::map<WebContentsImpl*, int64> GuestMap;
|
| @@ -147,6 +155,8 @@ class BrowserPluginHost : public WebContentsObserver,
|
| int pending_update_counter_;
|
| scoped_ptr<IPC::Message> pending_input_event_reply_;
|
|
|
| + BrowserPluginHostMsg_Surface_Params surface_params_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost);
|
| };
|
|
|
|
|