Index: content/public/browser/render_widget_host_view.h |
=================================================================== |
--- content/public/browser/render_widget_host_view.h (revision 268318) |
+++ content/public/browser/render_widget_host_view.h (working copy) |
@@ -6,6 +6,7 @@ |
#define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/strings/string16.h" |
#include "content/common/content_export.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
@@ -23,6 +24,7 @@ |
namespace content { |
class RenderWidgetHost; |
+class RenderWidgetHostViewFrameSubscriber; |
// RenderWidgetHostView is an interface implemented by an object that acts as |
// the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its |
@@ -108,6 +110,16 @@ |
// visible viewport. |
virtual void SetInsets(const gfx::Insets& insets) = 0; |
+ // Begin subscribing for presentation events and captured frames. |
+ // |subscriber| is now owned by this object, it will be called only on the |
+ // UI thread. |
+ virtual void BeginFrameSubscription( |
+ scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; |
+ |
+ // End subscribing for frame presentation events. FrameSubscriber will be |
+ // deleted after this call. |
+ virtual void EndFrameSubscription() = 0; |
+ |
#if defined(OS_MACOSX) |
// Set the view's active state (i.e., tint state of controls). |
virtual void SetActive(bool active) = 0; |