summaryrefslogtreecommitdiff
path: root/call.h
diff options
context:
space:
mode:
authorAndroid Chromium Automerger <chromium-automerger@android>2014-11-06 09:32:02 +0000
committerAndroid Chromium Automerger <chromium-automerger@android>2014-11-06 09:32:02 +0000
commit01a30f2a2c6542ec84470d4262a80865ec01e297 (patch)
treea4821d2136c53f90edf0819cf2ee72bd9b45ba93 /call.h
parentb44eb8f9b54e77b4ac5c426ea947f72a6ad74aad (diff)
parentb831a9e3d5f9f0563d249b726cffa8a070e58aee (diff)
downloadwebrtc-01a30f2a2c6542ec84470d4262a80865ec01e297.tar.gz
Merge third_party/webrtc from https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git at b831a9e3d5f9f0563d249b726cffa8a070e58aee
This commit was generated by merge_from_chromium.py. Change-Id: I6d6255972e3c34e7797e9b46fbc3c0fe7e552d43
Diffstat (limited to 'call.h')
-rw-r--r--call.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/call.h b/call.h
index f21425fb..c6596f86 100644
--- a/call.h
+++ b/call.h
@@ -88,6 +88,14 @@ class Call {
int stream_start_bitrate_bps;
};
+ struct Stats {
+ Stats() : send_bandwidth_bps(0), recv_bandwidth_bps(0), pacer_delay_ms(0) {}
+
+ int send_bandwidth_bps;
+ int recv_bandwidth_bps;
+ int pacer_delay_ms;
+ };
+
static Call* Create(const Call::Config& config);
static Call* Create(const Call::Config& config,
@@ -109,13 +117,9 @@ class Call {
// Call instance exists.
virtual PacketReceiver* Receiver() = 0;
- // Returns the estimated total send bandwidth. Note: this can differ from the
- // actual encoded bitrate.
- virtual uint32_t SendBitrateEstimate() = 0;
-
- // Returns the total estimated receive bandwidth for the call. Note: this can
- // differ from the actual receive bitrate.
- virtual uint32_t ReceiveBitrateEstimate() = 0;
+ // Returns the call statistics, such as estimated send and receive bandwidth,
+ // pacing delay, etc.
+ virtual Stats GetStats() const = 0;
virtual void SignalNetworkState(NetworkState state) = 0;