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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCRtpContributingSource.h

Issue 2808113002: Reland of TCRtpReceiver.getContributingSources() added. (Closed)
Patch Set: Created 3 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef RTCRtpContributingSource_h
6 #define RTCRtpContributingSource_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/GarbageCollected.h"
10 #include "platform/heap/Member.h"
11 #include "platform/heap/Visitor.h"
12
13 namespace blink {
14
15 class RTCRtpReceiver;
16 class WebRTCRtpContributingSource;
17
18 // https://w3c.github.io/webrtc-pc/#dom-rtcrtpcontributingsource
19 class RTCRtpContributingSource final
20 : public GarbageCollectedFinalized<RTCRtpContributingSource>,
21 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO();
23
24 public:
25 RTCRtpContributingSource(RTCRtpReceiver*, const WebRTCRtpContributingSource&);
26 // The source's source ID must match |source|.
27 void UpdateMembers(const WebRTCRtpContributingSource&);
28
29 double timestamp();
30 uint32_t source() const;
31
32 DECLARE_VIRTUAL_TRACE();
33
34 private:
35 Member<RTCRtpReceiver> receiver_;
36 double timestamp_ms_;
37 const uint32_t source_;
38 };
39
40 } // namespace blink
41
42 #endif // RTCRtpContributingSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698