Chromium Code Reviews| Index: webrtc/video/receive_statistics_proxy.h |
| diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h |
| index f88bbf51a27bcff761950c715252c4f204086ce9..7d4166f878038fb6f4d1559007cb9735e85ef32a 100644 |
| --- a/webrtc/video/receive_statistics_proxy.h |
| +++ b/webrtc/video/receive_statistics_proxy.h |
| @@ -37,7 +37,7 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
| public RtcpPacketTypeCounterObserver, |
| public StreamDataCountersCallback { |
| public: |
| - ReceiveStatisticsProxy(const VideoReceiveStream::Config& config, |
| + ReceiveStatisticsProxy(const VideoReceiveStream::Config* config, |
|
pbos-webrtc
2016/06/06 16:15:34
Shouldn't this still be a const reference?
tommi
2016/06/08 09:49:39
It could. What I want to do is to make a distinct
pbos-webrtc
2016/06/08 11:24:05
I think we have quite a bit of video-related code
tommi
2016/06/08 13:28:41
I would prefer to keep this as is actually. The s
|
| Clock* clock); |
| virtual ~ReceiveStatisticsProxy(); |
| @@ -96,7 +96,9 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
| void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
| Clock* const clock_; |
| - const VideoReceiveStream::Config config_; |
| + // Ownership of this object lies with the owner of the ReceiveStatisticsProxy |
| + // instance. Lifetime is guaranteed to outlive |this|. |
| + const VideoReceiveStream::Config& config_; |
| rtc::CriticalSection crit_; |
| VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); |