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

Unified Diff: webrtc/pc/channel.h

Issue 2915263002: Revert "Revert of Wire up BWE stats through WebrtcSession so that they are filled in both for audio… (Closed)
Patch Set: . Created 3 years, 7 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
Index: webrtc/pc/channel.h
diff --git a/webrtc/pc/channel.h b/webrtc/pc/channel.h
index 0abdaf2b2a9252eabe76c31d3728f122d7349b01..35369d6f60e071cd81a06522ef30dc4b28fd2064 100644
--- a/webrtc/pc/channel.h
+++ b/webrtc/pc/channel.h
@@ -351,11 +351,10 @@ class BaseChannel
virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor,
const std::vector<ConnectionInfo>& infos) = 0;
- // Helper function for invoking bool-returning methods on the worker thread.
- template <class FunctorT>
- bool InvokeOnWorker(const rtc::Location& posted_from,
- const FunctorT& functor) {
- return worker_thread_->Invoke<bool>(posted_from, functor);
+ // Helper function template for invoking methods on the worker thread.
+ template <class T, class FunctorT>
+ T InvokeOnWorker(const rtc::Location& posted_from, const FunctorT& functor) {
+ return worker_thread_->Invoke<T>(posted_from, functor);
}
void AddHandledPayloadType(int payload_type);
@@ -554,6 +553,7 @@ class VideoChannel : public BaseChannel {
bool SetSink(uint32_t ssrc,
rtc::VideoSinkInterface<webrtc::VideoFrame>* sink);
+ void FillBitrateInfo(BandwidthEstimationInfo* bwe_info);
// Get statistics about the current media session.
bool GetStats(VideoMediaInfo* stats);

Powered by Google App Engine
This is Rietveld 408576698