Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index a4f988db475f838a0c5e5fb4706be394af886bdb..597d3a282d37d2b71368f3d5a7da411bfb770add 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/renderer/message_delivery_policy.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; |
@@ -176,6 +179,13 @@ class CONTENT_EXPORT RenderWidget |
// Notifies about a compositor frame commit operation having finished. |
virtual void DidCommitCompositorFrame(); |
+ // Deliveres |message| together with compositor state change updates. The |
+ // exact behavior depends on |policy|. |
+ // |
+ // |msg| message to send, ownership of |msg| is transferred. |
+ // |policy| see the comment on MessageDeliveryPolicy. |
+ void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy); |
+ |
// Handle common setup/teardown for handling IME events. |
void StartHandlingImeEvent(); |
void FinishHandlingImeEvent(); |
@@ -687,6 +697,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 |