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..ed6478bb4aa55d516074c5599a804433b2231427 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,15 @@ 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(); |
+ // Frees up the damage buffer if there is one. |
+ void FreeDamageBuffer(); |
int instance_id_; |
RenderViewImpl* render_view_; |
@@ -152,6 +159,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_; |