| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SCREEN_RECORDER_H_ | 5 #ifndef REMOTING_HOST_SCREEN_RECORDER_H_ |
| 6 #define REMOTING_HOST_SCREEN_RECORDER_H_ | 6 #define REMOTING_HOST_SCREEN_RECORDER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // Network thread ----------------------------------------------------------- | 126 // Network thread ----------------------------------------------------------- |
| 127 | 127 |
| 128 // DoSendVideoPacket takes ownership of the |packet| and is responsible | 128 // DoSendVideoPacket takes ownership of the |packet| and is responsible |
| 129 // for deleting it. | 129 // for deleting it. |
| 130 void DoSendVideoPacket(VideoPacket* packet); | 130 void DoSendVideoPacket(VideoPacket* packet); |
| 131 | 131 |
| 132 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, | 132 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, |
| 133 int width, int height); | 133 int width, int height); |
| 134 | 134 |
| 135 void DoAddConnection(scoped_refptr<protocol::ConnectionToClient> connection); | |
| 136 void DoRemoveClient(scoped_refptr<protocol::ConnectionToClient> connection); | |
| 137 void DoRemoveAllClients(); | |
| 138 | |
| 139 // Signal network thread to cease activities. | 135 // Signal network thread to cease activities. |
| 140 void DoStopOnNetworkThread(const base::Closure& done_task); | 136 void DoStopOnNetworkThread(const base::Closure& done_task); |
| 141 | 137 |
| 142 // Callback for the last packet in one update. Deletes |packet| and | 138 // Callback for the last packet in one update. Deletes |packet| and |
| 143 // schedules next screen capture. | 139 // schedules next screen capture. |
| 144 void FrameSentCallback(VideoPacket* packet); | 140 void FrameSentCallback(VideoPacket* packet); |
| 145 | 141 |
| 146 // Encoder thread ----------------------------------------------------------- | 142 // Encoder thread ----------------------------------------------------------- |
| 147 | 143 |
| 148 void DoEncode(scoped_refptr<CaptureData> capture_data); | 144 void DoEncode(scoped_refptr<CaptureData> capture_data); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 202 |
| 207 // An object to schedule capturing. | 203 // An object to schedule capturing. |
| 208 CaptureScheduler scheduler_; | 204 CaptureScheduler scheduler_; |
| 209 | 205 |
| 210 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); | 206 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); |
| 211 }; | 207 }; |
| 212 | 208 |
| 213 } // namespace remoting | 209 } // namespace remoting |
| 214 | 210 |
| 215 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ | 211 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ |
| OLD | NEW |