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

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

Issue 2583193002: Removed RTCStatsCollector::ProducePartialResultsOnWorkerThread. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // completed. Must be called on the signaling thread. 75 // completed. Must be called on the signaling thread.
76 void WaitForPendingRequest(); 76 void WaitForPendingRequest();
77 77
78 protected: 78 protected:
79 RTCStatsCollector(PeerConnection* pc, int64_t cache_lifetime_us); 79 RTCStatsCollector(PeerConnection* pc, int64_t cache_lifetime_us);
80 ~RTCStatsCollector(); 80 ~RTCStatsCollector();
81 81
82 // Stats gathering on a particular thread. Calls |AddPartialResults| before 82 // Stats gathering on a particular thread. Calls |AddPartialResults| before
83 // returning. Virtual for the sake of testing. 83 // returning. Virtual for the sake of testing.
84 virtual void ProducePartialResultsOnSignalingThread(int64_t timestamp_us); 84 virtual void ProducePartialResultsOnSignalingThread(int64_t timestamp_us);
85 virtual void ProducePartialResultsOnWorkerThread(int64_t timestamp_us);
86 virtual void ProducePartialResultsOnNetworkThread(int64_t timestamp_us); 85 virtual void ProducePartialResultsOnNetworkThread(int64_t timestamp_us);
87 86
88 // Can be called on any thread. 87 // Can be called on any thread.
89 void AddPartialResults( 88 void AddPartialResults(
90 const rtc::scoped_refptr<RTCStatsReport>& partial_report); 89 const rtc::scoped_refptr<RTCStatsReport>& partial_report);
91 90
92 private: 91 private:
93 struct CertificateStatsPair { 92 struct CertificateStatsPair {
94 std::unique_ptr<rtc::SSLCertificateStats> local; 93 std::unique_ptr<rtc::SSLCertificateStats> local;
95 std::unique_ptr<rtc::SSLCertificateStats> remote; 94 std::unique_ptr<rtc::SSLCertificateStats> remote;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 }; 191 };
193 192
194 const char* CandidateTypeToRTCIceCandidateTypeForTesting( 193 const char* CandidateTypeToRTCIceCandidateTypeForTesting(
195 const std::string& type); 194 const std::string& type);
196 const char* DataStateToRTCDataChannelStateForTesting( 195 const char* DataStateToRTCDataChannelStateForTesting(
197 DataChannelInterface::DataState state); 196 DataChannelInterface::DataState state);
198 197
199 } // namespace webrtc 198 } // namespace webrtc
200 199
201 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ 200 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698