OLD | NEW |
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 |
11 #ifndef WEBRTC_PC_DATACHANNEL_H_ | 11 #ifndef WEBRTC_PC_DATACHANNEL_H_ |
12 #define WEBRTC_PC_DATACHANNEL_H_ | 12 #define WEBRTC_PC_DATACHANNEL_H_ |
13 | 13 |
14 #include <deque> | 14 #include <deque> |
15 #include <set> | 15 #include <set> |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 #include "webrtc/api/datachannelinterface.h" | 18 #include "webrtc/api/datachannelinterface.h" |
19 #include "webrtc/api/proxy.h" | 19 #include "webrtc/api/proxy.h" |
| 20 #include "webrtc/base/messagehandler.h" |
| 21 #include "webrtc/base/scoped_ref_ptr.h" |
| 22 #include "webrtc/base/sigslot.h" |
20 #include "webrtc/media/base/mediachannel.h" | 23 #include "webrtc/media/base/mediachannel.h" |
21 #include "webrtc/pc/channel.h" | 24 #include "webrtc/pc/channel.h" |
22 #include "webrtc/rtc_base/messagehandler.h" | |
23 #include "webrtc/rtc_base/scoped_ref_ptr.h" | |
24 #include "webrtc/rtc_base/sigslot.h" | |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 class DataChannel; | 28 class DataChannel; |
29 | 29 |
30 class DataChannelProviderInterface { | 30 class DataChannelProviderInterface { |
31 public: | 31 public: |
32 // Sends the data to the transport. | 32 // Sends the data to the transport. |
33 virtual bool SendData(const cricket::SendDataParams& params, | 33 virtual bool SendData(const cricket::SendDataParams& params, |
34 const rtc::CopyOnWriteBuffer& payload, | 34 const rtc::CopyOnWriteBuffer& payload, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 PROXY_CONSTMETHOD0(uint32_t, messages_received) | 289 PROXY_CONSTMETHOD0(uint32_t, messages_received) |
290 PROXY_CONSTMETHOD0(uint64_t, bytes_received) | 290 PROXY_CONSTMETHOD0(uint64_t, bytes_received) |
291 PROXY_CONSTMETHOD0(uint64_t, buffered_amount) | 291 PROXY_CONSTMETHOD0(uint64_t, buffered_amount) |
292 PROXY_METHOD0(void, Close) | 292 PROXY_METHOD0(void, Close) |
293 PROXY_METHOD1(bool, Send, const DataBuffer&) | 293 PROXY_METHOD1(bool, Send, const DataBuffer&) |
294 END_PROXY_MAP() | 294 END_PROXY_MAP() |
295 | 295 |
296 } // namespace webrtc | 296 } // namespace webrtc |
297 | 297 |
298 #endif // WEBRTC_PC_DATACHANNEL_H_ | 298 #endif // WEBRTC_PC_DATACHANNEL_H_ |
OLD | NEW |