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

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

Issue 2331373004: PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. (Closed)
Patch Set: Reverted previous DEPS change (no need to rerun bots yet) 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
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 virtual void GetStats(RTCStatsCollectorCallback* callback) = 0;
443 445
444 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( 446 virtual rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
445 const std::string& label, 447 const std::string& label,
446 const DataChannelInit* config) = 0; 448 const DataChannelInit* config) = 0;
447 449
448 virtual const SessionDescriptionInterface* local_description() const = 0; 450 virtual const SessionDescriptionInterface* local_description() const = 0;
449 virtual const SessionDescriptionInterface* remote_description() const = 0; 451 virtual const SessionDescriptionInterface* remote_description() const = 0;
450 452
451 // Create a new offer. 453 // Create a new offer.
452 // The CreateSessionDescriptionObserver callback will be called when done. 454 // 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, 773 cricket::WebRtcVideoEncoderFactory* encoder_factory,
772 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 774 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
773 return CreatePeerConnectionFactory( 775 return CreatePeerConnectionFactory(
774 worker_and_network_thread, worker_and_network_thread, signaling_thread, 776 worker_and_network_thread, worker_and_network_thread, signaling_thread,
775 default_adm, encoder_factory, decoder_factory); 777 default_adm, encoder_factory, decoder_factory);
776 } 778 }
777 779
778 } // namespace webrtc 780 } // namespace webrtc
779 781
780 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 782 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698