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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 typedef std::vector<ClientSession*> ClientList; | 157 typedef std::vector<ClientSession*> ClientList; |
158 | 158 |
159 enum State { | 159 enum State { |
160 kInitial, | 160 kInitial, |
161 kStarted, | 161 kStarted, |
162 kStopping, | 162 kStopping, |
163 kStopped, | 163 kStopped, |
164 }; | 164 }; |
165 | 165 |
166 // Creates encoder for the specified configuration. | 166 // Creates encoder for the specified configuration. |
167 static Encoder* CreateEncoder(const protocol::SessionConfig& config); | 167 static VideoEncoder* CreateVideoEncoder( |
| 168 const protocol::SessionConfig& config); |
168 | 169 |
169 // Creates an audio encoder for the specified configuration. | 170 // Creates an audio encoder for the specified configuration. |
170 static scoped_ptr<AudioEncoder> CreateAudioEncoder( | 171 static scoped_ptr<AudioEncoder> CreateAudioEncoder( |
171 const protocol::SessionConfig& config); | 172 const protocol::SessionConfig& config); |
172 | 173 |
173 virtual ~ChromotingHost(); | 174 virtual ~ChromotingHost(); |
174 | 175 |
175 void StopScreenRecorder(); | 176 void StopScreenRecorder(); |
176 void StopAudioScheduler(); | 177 void StopAudioScheduler(); |
177 void OnRecorderStopped(); | 178 void OnRecorderStopped(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 230 |
230 // The maximum duration of any session. | 231 // The maximum duration of any session. |
231 base::TimeDelta max_session_duration_; | 232 base::TimeDelta max_session_duration_; |
232 | 233 |
233 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 234 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
234 }; | 235 }; |
235 | 236 |
236 } // namespace remoting | 237 } // namespace remoting |
237 | 238 |
238 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 239 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |