Chromium Code Reviews| 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* CreateEncoder(const protocol::SessionConfig& config); |
|
simonmorris
2012/08/24 16:19:29
CreateEncoder -> CreateVideoEncoder
kxing
2012/08/24 16:28:04
Done.
| |
| 168 | 168 |
| 169 // Creates an audio encoder for the specified configuration. | 169 // Creates an audio encoder for the specified configuration. |
| 170 static scoped_ptr<AudioEncoder> CreateAudioEncoder( | 170 static scoped_ptr<AudioEncoder> CreateAudioEncoder( |
| 171 const protocol::SessionConfig& config); | 171 const protocol::SessionConfig& config); |
| 172 | 172 |
| 173 virtual ~ChromotingHost(); | 173 virtual ~ChromotingHost(); |
| 174 | 174 |
| 175 void StopScreenRecorder(); | 175 void StopScreenRecorder(); |
| 176 void StopAudioScheduler(); | 176 void StopAudioScheduler(); |
| 177 void OnRecorderStopped(); | 177 void OnRecorderStopped(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 | 229 |
| 230 // The maximum duration of any session. | 230 // The maximum duration of any session. |
| 231 base::TimeDelta max_session_duration_; | 231 base::TimeDelta max_session_duration_; |
| 232 | 232 |
| 233 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 233 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace remoting | 236 } // namespace remoting |
| 237 | 237 |
| 238 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 238 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |