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

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

Issue 2331373004: PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. (Closed)
Patch Set: (Corrected an incorrect inclusion) Created 4 years, 3 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
« no previous file with comments | « webrtc/api/peerconnection.cc ('k') | webrtc/api/peerconnectionproxy.h » ('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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 #include <memory> 54 #include <memory>
55 #include <string> 55 #include <string>
56 #include <utility> 56 #include <utility>
57 #include <vector> 57 #include <vector>
58 58
59 #include "webrtc/api/datachannelinterface.h" 59 #include "webrtc/api/datachannelinterface.h"
60 #include "webrtc/api/dtmfsenderinterface.h" 60 #include "webrtc/api/dtmfsenderinterface.h"
61 #include "webrtc/api/jsep.h" 61 #include "webrtc/api/jsep.h"
62 #include "webrtc/api/mediastreaminterface.h" 62 #include "webrtc/api/mediastreaminterface.h"
63 #include "webrtc/api/rtcstatscollector.h"
63 #include "webrtc/api/rtpreceiverinterface.h" 64 #include "webrtc/api/rtpreceiverinterface.h"
64 #include "webrtc/api/rtpsenderinterface.h" 65 #include "webrtc/api/rtpsenderinterface.h"
65 #include "webrtc/api/statstypes.h" 66 #include "webrtc/api/statstypes.h"
66 #include "webrtc/api/umametrics.h" 67 #include "webrtc/api/umametrics.h"
67 #include "webrtc/base/fileutils.h" 68 #include "webrtc/base/fileutils.h"
68 #include "webrtc/base/network.h" 69 #include "webrtc/base/network.h"
69 #include "webrtc/base/rtccertificate.h" 70 #include "webrtc/base/rtccertificate.h"
70 #include "webrtc/base/rtccertificategenerator.h" 71 #include "webrtc/base/rtccertificategenerator.h"
71 #include "webrtc/base/socketaddress.h" 72 #include "webrtc/base/socketaddress.h"
72 #include "webrtc/base/sslstreamadapter.h" 73 #include "webrtc/base/sslstreamadapter.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 434 }
434 435
435 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() 436 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers()
436 const { 437 const {
437 return std::vector<rtc::scoped_refptr<RtpReceiverInterface>>(); 438 return std::vector<rtc::scoped_refptr<RtpReceiverInterface>>();
438 } 439 }
439 440
440 virtual bool GetStats(StatsObserver* observer, 441 virtual bool GetStats(StatsObserver* observer,
441 MediaStreamTrackInterface* track, 442 MediaStreamTrackInterface* track,
442 StatsOutputLevel level) = 0; 443 StatsOutputLevel level) = 0;
444 // Gets stats using the new stats collection API, see webrtc/api/stats/. These
445 // will replace old stats collection API when the new API has matured enough.
446 // TODO(hbos): Default implementation that does nothing only exists as to not
447 // break third party projects. As soon as they have been updated this should
448 // be changed to "= 0;".
449 virtual void GetStats(RTCStatsCollectorCallback* callback) {}
443 450
444 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( 451 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
445 const std::string& label, 452 const std::string& label,
446 const DataChannelInit* config) = 0; 453 const DataChannelInit* config) = 0;
447 454
448 virtual const SessionDescriptionInterface* local_description() const = 0; 455 virtual const SessionDescriptionInterface* local_description() const = 0;
449 virtual const SessionDescriptionInterface* remote_description() const = 0; 456 virtual const SessionDescriptionInterface* remote_description() const = 0;
450 457
451 // Create a new offer. 458 // Create a new offer.
452 // The CreateSessionDescriptionObserver callback will be called when done. 459 // The CreateSessionDescriptionObserver callback will be called when done.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 cricket::WebRtcVideoEncoderFactory* encoder_factory, 778 cricket::WebRtcVideoEncoderFactory* encoder_factory,
772 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 779 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
773 return CreatePeerConnectionFactory( 780 return CreatePeerConnectionFactory(
774 worker_and_network_thread, worker_and_network_thread, signaling_thread, 781 worker_and_network_thread, worker_and_network_thread, signaling_thread,
775 default_adm, encoder_factory, decoder_factory); 782 default_adm, encoder_factory, decoder_factory);
776 } 783 }
777 784
778 } // namespace webrtc 785 } // namespace webrtc
779 786
780 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 787 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnection.cc ('k') | webrtc/api/peerconnectionproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698