OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ | 11 #ifndef WEBRTC_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ |
12 #define WEBRTC_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ | 12 #define WEBRTC_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ |
13 | 13 |
14 // TODO(deadbeef): Move SCTP code out of media/, and make it not depend on | 14 // TODO(deadbeef): Move SCTP code out of media/, and make it not depend on |
15 // anything in media/. | 15 // anything in media/. |
16 | 16 |
17 #include <memory> // for unique_ptr | 17 #include <memory> // for unique_ptr |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/rtc_base/copyonwritebuffer.h" | 21 #include "webrtc/base/copyonwritebuffer.h" |
22 #include "webrtc/rtc_base/thread.h" | 22 #include "webrtc/base/thread.h" |
23 // For SendDataParams/ReceiveDataParams. | 23 // For SendDataParams/ReceiveDataParams. |
24 // TODO(deadbeef): Use something else for SCTP. It's confusing that we use an | 24 // TODO(deadbeef): Use something else for SCTP. It's confusing that we use an |
25 // SSRC field for SID. | 25 // SSRC field for SID. |
26 #include "webrtc/media/base/mediachannel.h" | 26 #include "webrtc/media/base/mediachannel.h" |
27 #include "webrtc/p2p/base/packettransportinternal.h" | 27 #include "webrtc/p2p/base/packettransportinternal.h" |
28 | 28 |
29 namespace cricket { | 29 namespace cricket { |
30 | 30 |
31 // The number of outgoing streams that we'll negotiate. Since stream IDs (SIDs) | 31 // The number of outgoing streams that we'll negotiate. Since stream IDs (SIDs) |
32 // are 0-based, the highest usable SID is 1023. | 32 // are 0-based, the highest usable SID is 1023. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual ~SctpTransportInternalFactory() {} | 128 virtual ~SctpTransportInternalFactory() {} |
129 | 129 |
130 // Create an SCTP transport using |channel| for the underlying transport. | 130 // Create an SCTP transport using |channel| for the underlying transport. |
131 virtual std::unique_ptr<SctpTransportInternal> CreateSctpTransport( | 131 virtual std::unique_ptr<SctpTransportInternal> CreateSctpTransport( |
132 rtc::PacketTransportInternal* channel) = 0; | 132 rtc::PacketTransportInternal* channel) = 0; |
133 }; | 133 }; |
134 | 134 |
135 } // namespace cricket | 135 } // namespace cricket |
136 | 136 |
137 #endif // WEBRTC_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ | 137 #endif // WEBRTC_MEDIA_SCTP_SCTPTRANSPORTINTERNAL_H_ |
OLD | NEW |