| Index: content/renderer/browser_plugin/browser_plugin.h
|
| diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
|
| index f4fd84539f36a169613d31d247d92c13543b4581..5bdc97f500f18f7a120a80981e97816656d29cfb 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.h
|
| +++ b/content/renderer/browser_plugin/browser_plugin.h
|
| @@ -16,6 +16,7 @@
|
| #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
|
| #include "content/renderer/render_view_impl.h"
|
|
|
| +struct BrowserPluginHostMsg_ResizeGuest_Params;
|
| struct BrowserPluginMsg_UpdateRect_Params;
|
|
|
| namespace content {
|
| @@ -137,9 +138,17 @@ class CONTENT_EXPORT BrowserPlugin :
|
| // and sets them appropriately.
|
| void ParseAttributes(const WebKit::WebPluginParams& params);
|
|
|
| + // Returns the pending resize guest param if there is one. Returns a param
|
| + // with invalid transport dib otherwise.
|
| + BrowserPluginHostMsg_ResizeGuest_Params* GetPendingResizeParams();
|
| +
|
| // Cleanup event listener state to free v8 resources when a BrowserPlugin
|
| // is destroyed.
|
| void RemoveEventListeners();
|
| + // Creates and maps transport dib. Overridden in tests.
|
| + virtual TransportDIB* CreateTransportDIB(const size_t size);
|
| + // Frees up the damage buffer. Overridden in tests.
|
| + virtual void FreeDamageBuffer();
|
|
|
| int instance_id_;
|
| RenderViewImpl* render_view_;
|
| @@ -152,6 +161,7 @@ class CONTENT_EXPORT BrowserPlugin :
|
| SkBitmap* sad_guest_;
|
| bool guest_crashed_;
|
| bool resize_pending_;
|
| + scoped_ptr<BrowserPluginHostMsg_ResizeGuest_Params> pending_resize_params_;
|
| // True if we have ever sent a NavigateGuest message to the embedder.
|
| bool navigate_src_sent_;
|
| std::string src_;
|
|
|