OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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_BUNDLEFILTER_H_ | 11 #ifndef WEBRTC_PC_BUNDLEFILTER_H_ |
12 #define WEBRTC_PC_BUNDLEFILTER_H_ | 12 #define WEBRTC_PC_BUNDLEFILTER_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include <set> | 16 #include <set> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/base/basictypes.h" |
19 #include "webrtc/media/base/streamparams.h" | 20 #include "webrtc/media/base/streamparams.h" |
20 #include "webrtc/rtc_base/basictypes.h" | |
21 | 21 |
22 namespace cricket { | 22 namespace cricket { |
23 | 23 |
24 // In case of single RTP session and single transport channel, all session | 24 // In case of single RTP session and single transport channel, all session |
25 // (or media) channels share a common transport channel. Hence they all get | 25 // (or media) channels share a common transport channel. Hence they all get |
26 // SignalReadPacket when packet received on transport channel. This requires | 26 // SignalReadPacket when packet received on transport channel. This requires |
27 // cricket::BaseChannel to know all the valid sources, else media channel | 27 // cricket::BaseChannel to know all the valid sources, else media channel |
28 // will decode invalid packets. | 28 // will decode invalid packets. |
29 // | 29 // |
30 // This class determines whether a packet is destined for cricket::BaseChannel. | 30 // This class determines whether a packet is destined for cricket::BaseChannel. |
(...skipping 14 matching lines...) Expand all Loading... |
45 bool FindPayloadType(int pl_type) const; | 45 bool FindPayloadType(int pl_type) const; |
46 void ClearAllPayloadTypes(); | 46 void ClearAllPayloadTypes(); |
47 | 47 |
48 private: | 48 private: |
49 std::set<int> payload_types_; | 49 std::set<int> payload_types_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace cricket | 52 } // namespace cricket |
53 | 53 |
54 #endif // WEBRTC_PC_BUNDLEFILTER_H_ | 54 #endif // WEBRTC_PC_BUNDLEFILTER_H_ |
OLD | NEW |