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

Unified Diff: content/renderer/render_widget.h

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't use metadata to stash IPC messages Created 6 years, 7 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/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 06f25e7b1db2e850dd2f2cef59ab8961945d5d31..201ab3f2643335d232df910136ca9343e68fe5f4 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -9,6 +9,7 @@
#include <map>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -20,6 +21,7 @@
#include "content/common/cursors/webcursor.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/common/input/synthetic_gesture_params.h"
+#include "content/public/common/widget_visible_state.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "third_party/WebKit/public/platform/WebRect.h"
@@ -66,6 +68,7 @@ class Range;
namespace content {
class ExternalPopupMenu;
+class FrameSwapMessageQueue;
class PepperPluginInstanceImpl;
class RenderFrameImpl;
class RenderWidgetCompositor;
@@ -178,6 +181,9 @@ class CONTENT_EXPORT RenderWidget
// Notifies about a compositor frame commit operation having finished.
virtual void DidCommitCompositorFrame();
+ // FIXME: docs
+ void QueueMessage(IPC::Message* msg);
+
// Handle common setup/teardown for handling IME events.
void StartHandlingImeEvent();
void FinishHandlingImeEvent();
@@ -693,6 +699,7 @@ class CONTENT_EXPORT RenderWidget
gfx::Point popup_screen_origin_for_emulation_;
float popup_origin_scale_for_emulation_;
+ scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
scoped_ptr<ResizingModeSelector> resizing_mode_selector_;
// A list of swapped out RenderFrames that need to be notified

Powered by Google App Engine
This is Rietveld 408576698