Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 10965048: [BrowserTag] Send dib info with NavigateGuest message, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix OSX (this CL exposes this): manage transport dibs on mac ourselves, instead of letting browser … Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698