Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 rtc::Thread* const signaling_thread_; | 149 rtc::Thread* const signaling_thread_; |
| 150 rtc::Thread* const worker_thread_; | 150 rtc::Thread* const worker_thread_; |
| 151 rtc::Thread* const network_thread_; | 151 rtc::Thread* const network_thread_; |
| 152 rtc::AsyncInvoker invoker_; | 152 rtc::AsyncInvoker invoker_; |
| 153 | 153 |
| 154 int num_pending_partial_reports_; | 154 int num_pending_partial_reports_; |
| 155 int64_t partial_report_timestamp_us_; | 155 int64_t partial_report_timestamp_us_; |
| 156 rtc::scoped_refptr<RTCStatsReport> partial_report_; | 156 rtc::scoped_refptr<RTCStatsReport> partial_report_; |
| 157 std::vector<rtc::scoped_refptr<RTCStatsCollectorCallback>> callbacks_; | 157 std::vector<rtc::scoped_refptr<RTCStatsCollectorCallback>> callbacks_; |
| 158 | 158 |
| 159 // Set in |GetStatsReport|, used in |ProducePartialResultsOnNetworkThread| | 159 // Set in |GetStatsReport|, read in |ProducePartialResultsOnNetworkThread| |
| 160 // (not passed as arguments to avoid copies). This is thread safe - it is set | 160 // (not passed as arguments to avoid copies). This is thread safe - it is set |
| 161 // at the start of |GetStatsReport| after making sure there are no pending | 161 // at the start of |GetStatsReport| after making sure there are no pending |
| 162 // stats requests in progress. | 162 // stats requests in progress. |
| 163 std::unique_ptr<ChannelNamePairs> channel_name_pairs_; | 163 std::unique_ptr<ChannelNamePairs> channel_name_pairs_; |
| 164 // ... Also read in |ProducePartialResultsOnSignalingThread|. | |
|
hta-webrtc
2017/01/02 15:29:46
It's easier to read these comment-above-declaratio
| |
| 164 std::unique_ptr<MediaInfo> media_info_; | 165 std::unique_ptr<MediaInfo> media_info_; |
| 165 | 166 |
| 166 // A timestamp, in microseconds, that is based on a timer that is | 167 // A timestamp, in microseconds, that is based on a timer that is |
| 167 // monotonically increasing. That is, even if the system clock is modified the | 168 // monotonically increasing. That is, even if the system clock is modified the |
| 168 // difference between the timer and this timestamp is how fresh the cached | 169 // difference between the timer and this timestamp is how fresh the cached |
| 169 // report is. | 170 // report is. |
| 170 int64_t cache_timestamp_us_; | 171 int64_t cache_timestamp_us_; |
| 171 int64_t cache_lifetime_us_; | 172 int64_t cache_lifetime_us_; |
| 172 rtc::scoped_refptr<const RTCStatsReport> cached_report_; | 173 rtc::scoped_refptr<const RTCStatsReport> cached_report_; |
| 173 | 174 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 const char* CandidateTypeToRTCIceCandidateTypeForTesting( | 195 const char* CandidateTypeToRTCIceCandidateTypeForTesting( |
| 195 const std::string& type); | 196 const std::string& type); |
| 196 const char* DataStateToRTCDataChannelStateForTesting( | 197 const char* DataStateToRTCDataChannelStateForTesting( |
| 197 DataChannelInterface::DataState state); | 198 DataChannelInterface::DataState state); |
| 198 | 199 |
| 199 } // namespace webrtc | 200 } // namespace webrtc |
| 200 | 201 |
| 201 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ | 202 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
| OLD | NEW |