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 |
11 #ifndef WEBRTC_PC_TRACKMEDIAINFOMAP_H_ | 11 #ifndef WEBRTC_PC_TRACKMEDIAINFOMAP_H_ |
12 #define WEBRTC_PC_TRACKMEDIAINFOMAP_H_ | 12 #define WEBRTC_PC_TRACKMEDIAINFOMAP_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/api/mediastreaminterface.h" | 18 #include "webrtc/api/mediastreaminterface.h" |
19 #include "webrtc/api/rtpreceiverinterface.h" | 19 #include "webrtc/api/rtpreceiverinterface.h" |
20 #include "webrtc/api/rtpsenderinterface.h" | 20 #include "webrtc/api/rtpsenderinterface.h" |
| 21 #include "webrtc/base/refcount.h" |
21 #include "webrtc/media/base/mediachannel.h" | 22 #include "webrtc/media/base/mediachannel.h" |
22 #include "webrtc/rtc_base/refcount.h" | |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 // Audio/video tracks and sender/receiver statistical information are associated | 26 // Audio/video tracks and sender/receiver statistical information are associated |
27 // with each other based on attachments to RTP senders/receivers. This class | 27 // with each other based on attachments to RTP senders/receivers. This class |
28 // maps that relationship, in both directions, so that stats about a track can | 28 // maps that relationship, in both directions, so that stats about a track can |
29 // be retrieved on a per-attachment basis. | 29 // be retrieved on a per-attachment basis. |
30 // | 30 // |
31 // An RTP sender/receiver sends or receives media for a set of SSRCs. The media | 31 // An RTP sender/receiver sends or receives media for a set of SSRCs. The media |
32 // comes from an audio/video track that is attached to it. | 32 // comes from an audio/video track that is attached to it. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 rtc::scoped_refptr<VideoTrackInterface>> | 93 rtc::scoped_refptr<VideoTrackInterface>> |
94 video_track_by_sender_info_; | 94 video_track_by_sender_info_; |
95 std::map<const cricket::VideoReceiverInfo*, | 95 std::map<const cricket::VideoReceiverInfo*, |
96 rtc::scoped_refptr<VideoTrackInterface>> | 96 rtc::scoped_refptr<VideoTrackInterface>> |
97 video_track_by_receiver_info_; | 97 video_track_by_receiver_info_; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace webrtc | 100 } // namespace webrtc |
101 | 101 |
102 #endif // WEBRTC_PC_TRACKMEDIAINFOMAP_H_ | 102 #endif // WEBRTC_PC_TRACKMEDIAINFOMAP_H_ |
OLD | NEW |