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

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: Sync @tott, correct rebase, bring back two lost comments from previous rounds 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
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 daebe8323cfc3589c038e3f4aa78f2f6f186c47e..2d3d45116a5eb54545a6d05aa8dc90ad9f738441 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 {
@@ -150,9 +151,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_;
@@ -165,6 +174,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_;
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698