OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Network thread ----------------------------------------------------------- | 126 // Network thread ----------------------------------------------------------- |
127 | 127 |
128 void DoSendVideoPacket(scoped_ptr<VideoPacket> packet); | 128 void DoSendVideoPacket(scoped_ptr<VideoPacket> packet); |
129 | 129 |
130 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, | 130 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, |
131 int width, int height); | 131 int width, int height); |
132 | 132 |
133 // Signal network thread to cease activities. | 133 // Signal network thread to cease activities. |
134 void DoStopOnNetworkThread(const base::Closure& done_task); | 134 void DoStopOnNetworkThread(const base::Closure& done_task); |
135 | 135 |
136 // Callback for VideoStub::ProcessVideoPacket(). | 136 // Callback for VideoStub::ProcessVideoPacket() that is used for |
137 void VideoPacketSentCallback(scoped_ptr<VideoPacket> packet); | 137 // each last packet in a frame. |
| 138 void VideoFrameSentCallback(); |
138 | 139 |
139 // Encoder thread ----------------------------------------------------------- | 140 // Encoder thread ----------------------------------------------------------- |
140 | 141 |
141 void DoEncode(scoped_refptr<CaptureData> capture_data); | 142 void DoEncode(scoped_refptr<CaptureData> capture_data); |
142 | 143 |
143 // Perform stop operations on encode thread. | 144 // Perform stop operations on encode thread. |
144 void DoStopOnEncodeThread(const base::Closure& done_task); | 145 void DoStopOnEncodeThread(const base::Closure& done_task); |
145 | 146 |
146 void EncodedDataAvailableCallback(scoped_ptr<VideoPacket> packet); | 147 void EncodedDataAvailableCallback(scoped_ptr<VideoPacket> packet); |
147 void SendVideoPacket(VideoPacket* packet); | 148 void SendVideoPacket(VideoPacket* packet); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 198 |
198 // An object to schedule capturing. | 199 // An object to schedule capturing. |
199 CaptureScheduler scheduler_; | 200 CaptureScheduler scheduler_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); | 202 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace remoting | 205 } // namespace remoting |
205 | 206 |
206 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ | 207 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ |
OLD | NEW |