| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #ifndef WEBRTC_CALL_H_ | 10 #ifndef WEBRTC_CALL_H_ |
| 11 #define WEBRTC_CALL_H_ | 11 #define WEBRTC_CALL_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
| 17 #include "webrtc/audio_receive_stream.h" | 17 #include "webrtc/audio_receive_stream.h" |
| 18 #include "webrtc/audio_send_stream.h" | 18 #include "webrtc/audio_send_stream.h" |
| 19 #include "webrtc/audio_state.h" | 19 #include "webrtc/audio_state.h" |
| 20 #include "webrtc/base/socket.h" | 20 #include "webrtc/base/socket.h" |
| 21 #include "webrtc/video_receive_stream.h" | 21 #include "webrtc/video_receive_stream.h" |
| 22 #include "webrtc/video_send_stream.h" | 22 #include "webrtc/video_send_stream.h" |
| 23 | 23 |
| 24 namespace cricket { |
| 25 class Connection; |
| 26 } // namespace cricket |
| 27 |
| 24 namespace webrtc { | 28 namespace webrtc { |
| 25 | 29 |
| 26 class AudioProcessing; | 30 class AudioProcessing; |
| 27 | 31 |
| 28 const char* Version(); | 32 const char* Version(); |
| 29 | 33 |
| 30 enum class MediaType { | 34 enum class MediaType { |
| 31 ANY, | 35 ANY, |
| 32 AUDIO, | 36 AUDIO, |
| 33 VIDEO, | 37 VIDEO, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 132 |
| 129 // TODO(pbos): Like BitrateConfig above this is currently per-stream instead | 133 // TODO(pbos): Like BitrateConfig above this is currently per-stream instead |
| 130 // of maximum for entire Call. This should be fixed along with the above. | 134 // of maximum for entire Call. This should be fixed along with the above. |
| 131 // Specifying a start bitrate (>0) will currently reset the current bitrate | 135 // Specifying a start bitrate (>0) will currently reset the current bitrate |
| 132 // estimate. This is due to how the 'x-google-start-bitrate' flag is currently | 136 // estimate. This is due to how the 'x-google-start-bitrate' flag is currently |
| 133 // implemented. | 137 // implemented. |
| 134 virtual void SetBitrateConfig( | 138 virtual void SetBitrateConfig( |
| 135 const Config::BitrateConfig& bitrate_config) = 0; | 139 const Config::BitrateConfig& bitrate_config) = 0; |
| 136 virtual void SignalNetworkState(NetworkState state) = 0; | 140 virtual void SignalNetworkState(NetworkState state) = 0; |
| 137 | 141 |
| 142 virtual void OnBestConnectionChanged(cricket::Connection* connection) = 0; |
| 143 |
| 138 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 144 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
| 139 | 145 |
| 140 virtual ~Call() {} | 146 virtual ~Call() {} |
| 141 }; | 147 }; |
| 142 | 148 |
| 143 } // namespace webrtc | 149 } // namespace webrtc |
| 144 | 150 |
| 145 #endif // WEBRTC_CALL_H_ | 151 #endif // WEBRTC_CALL_H_ |
| OLD | NEW |