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

Side by Side Diff: webrtc/api/statscollector.h

Issue 1827023002: Get VideoCapturer stats via VideoTrackSourceInterface in StatsCollector, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Move logic back to StatsCollector, with an explicit cast to VideoTrackInterface* Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 StatsReport* AddConnectionInfoReport(const std::string& content_name, 107 StatsReport* AddConnectionInfoReport(const std::string& content_name,
108 int component, int connection_id, 108 int component, int connection_id,
109 const StatsReport::Id& channel_report_id, 109 const StatsReport::Id& channel_report_id,
110 const cricket::ConnectionInfo& info); 110 const cricket::ConnectionInfo& info);
111 111
112 void ExtractDataInfo(); 112 void ExtractDataInfo();
113 void ExtractSessionInfo(); 113 void ExtractSessionInfo();
114 void ExtractVoiceInfo(); 114 void ExtractVoiceInfo();
115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level); 115 void ExtractVideoInfo(PeerConnectionInterface::StatsOutputLevel level);
116 void ExtractSenderInfo();
116 void BuildSsrcToTransportId(); 117 void BuildSsrcToTransportId();
117 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type, 118 webrtc::StatsReport* GetReport(const StatsReport::StatsType& type,
118 const std::string& id, 119 const std::string& id,
119 StatsReport::Direction direction); 120 StatsReport::Direction direction);
120 121
121 // Helper method to get stats from the local audio tracks. 122 // Helper method to get stats from the local audio tracks.
122 void UpdateStatsFromExistingLocalAudioTracks(); 123 void UpdateStatsFromExistingLocalAudioTracks();
123 void UpdateReportFromAudioTrack(AudioTrackInterface* track, 124 void UpdateReportFromAudioTrack(AudioTrackInterface* track,
124 StatsReport* report); 125 StatsReport* report);
125 126
(...skipping 17 matching lines...) Expand all
143 // TODO(tommi): We appear to be holding on to raw pointers to reference 144 // TODO(tommi): We appear to be holding on to raw pointers to reference
144 // counted objects? We should be using scoped_refptr here. 145 // counted objects? We should be using scoped_refptr here.
145 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> > 146 typedef std::vector<std::pair<AudioTrackInterface*, uint32_t> >
146 LocalAudioTrackVector; 147 LocalAudioTrackVector;
147 LocalAudioTrackVector local_audio_tracks_; 148 LocalAudioTrackVector local_audio_tracks_;
148 }; 149 };
149 150
150 } // namespace webrtc 151 } // namespace webrtc
151 152
152 #endif // WEBRTC_API_STATSCOLLECTOR_H_ 153 #endif // WEBRTC_API_STATSCOLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698