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

Unified Diff: remoting/host/capturer.h

Issue 4971003: Inject MessageLoop into Capturer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: 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

Powered by Google App Engine
This is Rietveld 408576698