Index: remoting/host/capturer.h |
diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h |
index 481b1f3b9d17b5b629b0c173adc016b13230f05c..548b685ef517b7e3cda698d45fae17e54b540bdd 100644 |
--- a/remoting/host/capturer.h |
+++ b/remoting/host/capturer.h |
@@ -44,9 +44,11 @@ class Capturer { |
// CaptureCompletedCallback is called when the capturer has completed. |
typedef Callback1<scoped_refptr<CaptureData> >::Type CaptureCompletedCallback; |
- explicit Capturer(MessageLoop* message_loop); |
virtual ~Capturer(); |
+ // Create platform-specific cpaturer. |
+ static Capturer* Create(MessageLoop* message_loop); |
+ |
// Called when the screen configuration is changed. |
virtual void ScreenConfigurationChanged() = 0; |
@@ -84,6 +86,8 @@ class Capturer { |
virtual void CaptureInvalidRects(CaptureCompletedCallback* callback); |
protected: |
+ explicit Capturer(MessageLoop* message_loop); |
+ |
// Update the list of |invalid_rects| to prepare for capturing the |
// screen data. |
// Depending on the platform implementation, this routine might: |