OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_CAPTURER_H_ | 5 #ifndef REMOTING_HOST_CAPTURER_H_ |
6 #define REMOTING_HOST_CAPTURER_H_ | 6 #define REMOTING_HOST_CAPTURER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/lock.h" | 10 #include "base/lock.h" |
| 11 #include "base/task.h" |
11 #include "remoting/base/capture_data.h" | 12 #include "remoting/base/capture_data.h" |
12 #include "remoting/base/types.h" | 13 #include "remoting/base/types.h" |
13 | 14 |
14 class MessageLoop; | 15 class MessageLoop; |
15 | 16 |
16 namespace remoting { | 17 namespace remoting { |
17 | 18 |
18 // A class to perform the task of capturing the image of a window. | 19 // A class to perform the task of capturing the image of a window. |
19 // The capture action is asynchronous to allow maximum throughput. | 20 // The capture action is asynchronous to allow maximum throughput. |
20 // | 21 // |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // capture. | 137 // capture. |
137 InvalidRects inval_rects_; | 138 InvalidRects inval_rects_; |
138 | 139 |
139 // A lock protecting |inval_rects_| across threads. | 140 // A lock protecting |inval_rects_| across threads. |
140 Lock inval_rects_lock_; | 141 Lock inval_rects_lock_; |
141 }; | 142 }; |
142 | 143 |
143 } // namespace remoting | 144 } // namespace remoting |
144 | 145 |
145 #endif // REMOTING_HOST_CAPTURER_H_ | 146 #endif // REMOTING_HOST_CAPTURER_H_ |
OLD | NEW |