| 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/optional.h" |
| 20 #include "webrtc/base/socket.h" | 21 #include "webrtc/base/socket.h" |
| 21 #include "webrtc/video_receive_stream.h" | 22 #include "webrtc/video_receive_stream.h" |
| 22 #include "webrtc/video_send_stream.h" | 23 #include "webrtc/video_send_stream.h" |
| 23 | 24 |
| 24 namespace webrtc { | 25 namespace webrtc { |
| 25 | 26 |
| 26 class AudioProcessing; | 27 class AudioProcessing; |
| 27 | 28 |
| 28 const char* Version(); | 29 const char* Version(); |
| 29 | 30 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 class Call { | 71 class Call { |
| 71 public: | 72 public: |
| 72 struct Config { | 73 struct Config { |
| 73 static const int kDefaultStartBitrateBps; | 74 static const int kDefaultStartBitrateBps; |
| 74 | 75 |
| 75 // Bitrate config used until valid bitrate estimates are calculated. Also | 76 // Bitrate config used until valid bitrate estimates are calculated. Also |
| 76 // used to cap total bitrate used. | 77 // used to cap total bitrate used. |
| 77 struct BitrateConfig { | 78 struct BitrateConfig { |
| 78 int min_bitrate_bps = 0; | 79 int min_bitrate_bps = 0; |
| 79 int start_bitrate_bps = kDefaultStartBitrateBps; | 80 int start_bitrate_bps = kDefaultStartBitrateBps; |
| 80 int max_bitrate_bps = -1; | 81 rtc::Optional<int> max_bitrate_bps; |
| 81 } bitrate_config; | 82 } bitrate_config; |
| 82 | 83 |
| 83 // AudioState which is possibly shared between multiple calls. | 84 // AudioState which is possibly shared between multiple calls. |
| 84 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 85 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 85 rtc::scoped_refptr<AudioState> audio_state; | 86 rtc::scoped_refptr<AudioState> audio_state; |
| 86 | 87 |
| 87 // Audio Processing Module to be used in this call. | 88 // Audio Processing Module to be used in this call. |
| 88 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 89 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 89 AudioProcessing* audio_processing = nullptr; | 90 AudioProcessing* audio_processing = nullptr; |
| 90 }; | 91 }; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 NetworkState state) = 0; | 142 NetworkState state) = 0; |
| 142 | 143 |
| 143 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 144 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
| 144 | 145 |
| 145 virtual ~Call() {} | 146 virtual ~Call() {} |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace webrtc | 149 } // namespace webrtc |
| 149 | 150 |
| 150 #endif // WEBRTC_CALL_H_ | 151 #endif // WEBRTC_CALL_H_ |
| OLD | NEW |