| 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/synchronization/lock.h" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "remoting/base/capture_data.h" | 12 #include "remoting/base/capture_data.h" |
| 13 #include "remoting/base/types.h" | 13 #include "remoting/base/types.h" |
| 14 | 14 |
| 15 class MessageLoop; | 15 class MessageLoop; |
| 16 | 16 |
| 17 namespace remoting { | 17 namespace remoting { |
| 18 | 18 |
| 19 // 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. |
| 20 // The capture action is asynchronous to allow maximum throughput. | 20 // The capture action is asynchronous to allow maximum throughput. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Message loop that operations should run on. | 131 // Message loop that operations should run on. |
| 132 MessageLoop* message_loop_; | 132 MessageLoop* message_loop_; |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 // Rects that have been manually invalidated (through InvalidateRect). | 135 // Rects that have been manually invalidated (through InvalidateRect). |
| 136 // These will be returned as dirty_rects in the capture data during the next | 136 // These will be returned as dirty_rects in the capture data during the next |
| 137 // capture. | 137 // capture. |
| 138 InvalidRects inval_rects_; | 138 InvalidRects inval_rects_; |
| 139 | 139 |
| 140 // A lock protecting |inval_rects_| across threads. | 140 // A lock protecting |inval_rects_| across threads. |
| 141 Lock inval_rects_lock_; | 141 base::Lock inval_rects_lock_; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace remoting | 144 } // namespace remoting |
| 145 | 145 |
| 146 #endif // REMOTING_HOST_CAPTURER_H_ | 146 #endif // REMOTING_HOST_CAPTURER_H_ |
| OLD | NEW |