tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

call_basic_stats.h (1088B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_CALL_CALL_BASIC_STATS_H_
      8 #define DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_CALL_CALL_BASIC_STATS_H_
      9 
     10 #include <optional>
     11 #include <string>
     12 
     13 namespace webrtc {
     14 
     15 // named to avoid conflicts with video/call_stats.h
     16 struct CallBasicStats {
     17  std::string ToString(int64_t time_ms) const;
     18 
     19  int send_bandwidth_bps = 0;       // Estimated available send bandwidth.
     20  int max_padding_bitrate_bps = 0;  // Cumulative configured max padding.
     21  int recv_bandwidth_bps = 0;       // Estimated available receive bandwidth.
     22  int64_t pacer_delay_ms = 0;
     23  int64_t rtt_ms = -1;
     24  std::optional<int64_t> ccfb_messages_received = std::nullopt;
     25 };
     26 
     27 }  // namespace webrtc
     28 
     29 #endif  // DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_CALL_CALL_BASIC_STATS_H_