Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: webrtc/call.h

Issue 1757683002: Make the audio channel communicate network state changes to the call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Made the Call class keep track of network state for audio and video separately Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/call/call.cc » ('j') | webrtc/call/call.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call.h
diff --git a/webrtc/call.h b/webrtc/call.h
index 313c5e58c16f49446c8d6fbcdaa92950179628a8..57b8ef6cea4cb266045f235c06c37e5921043940 100644
--- a/webrtc/call.h
+++ b/webrtc/call.h
@@ -34,6 +34,17 @@ enum class MediaType {
DATA
};
+enum class ChannelNetworkState
the sun 2016/03/04 12:40:48 I don't think you need this enum. The CHANNEL_NOT_
+{
+ CHANNEL_NOT_PRESENT,
+ CHANNEL_NETWORK_DOWN,
+ CHANNEL_NETWORK_UP
+};
+
+NetworkState ChannelStateToNetworkState(ChannelNetworkState channelState);
+NetworkState AggregateNetworkState(ChannelNetworkState channelA,
+ ChannelNetworkState channelB);
+
class PacketReceiver {
public:
enum DeliveryStatus {
@@ -133,7 +144,9 @@ class Call {
// implemented.
virtual void SetBitrateConfig(
const Config::BitrateConfig& bitrate_config) = 0;
- virtual void SignalNetworkState(NetworkState state) = 0;
+
+ virtual void SignalChannelNetworkState(MediaType media,
+ ChannelNetworkState state) = 0;
virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
« no previous file with comments | « no previous file | webrtc/call/call.cc » ('j') | webrtc/call/call.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698