Chromium Code Reviews| Index: remoting/host/capturer.h |
| diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h |
| index f9e967afe310a4cf2ab010fdf39a9df673ef65c0..aa20b643ed0cf41d32738f1754396cc30ddd0200 100644 |
| --- a/remoting/host/capturer.h |
| +++ b/remoting/host/capturer.h |
| @@ -12,6 +12,8 @@ |
| #include "remoting/base/capture_data.h" |
| #include "remoting/base/types.h" |
| +class MessageLoop; |
| + |
| namespace remoting { |
| // A class to perform the task of capturing the image of a window. |
| @@ -42,7 +44,7 @@ class Capturer { |
| // CaptureCompletedCallback is called when the capturer has completed. |
| typedef Callback1<scoped_refptr<CaptureData> >::Type CaptureCompletedCallback; |
| - Capturer(); |
| + Capturer(MessageLoop* message_loop); |
|
awong
2010/11/16 00:42:12
explicit
|
| virtual ~Capturer(); |
| // Called when the screen configuration is changed. |
| @@ -122,6 +124,9 @@ class Capturer { |
| // The current buffer with valid data for reading. |
| int current_buffer_; |
| + // Message loop that operations should run on. |
| + MessageLoop* message_loop_; |
| + |
| private: |
| // Rects that have been manually invalidated (through InvalidateRect). |
| // These will be returned as dirty_rects in the capture data during the next |