| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #ifndef TALK_APP_WEBRTC_DATACHANNEL_H_ | 28 #ifndef TALK_APP_WEBRTC_DATACHANNEL_H_ |
| 29 #define TALK_APP_WEBRTC_DATACHANNEL_H_ | 29 #define TALK_APP_WEBRTC_DATACHANNEL_H_ |
| 30 | 30 |
| 31 #include <deque> | 31 #include <deque> |
| 32 #include <set> | 32 #include <set> |
| 33 #include <string> | 33 #include <string> |
| 34 | 34 |
| 35 #include "talk/app/webrtc/datachannelinterface.h" | 35 #include "talk/app/webrtc/datachannelinterface.h" |
| 36 #include "talk/app/webrtc/proxy.h" | 36 #include "talk/app/webrtc/proxy.h" |
| 37 #include "talk/media/base/mediachannel.h" | |
| 38 #include "talk/session/media/channel.h" | 37 #include "talk/session/media/channel.h" |
| 39 #include "webrtc/base/messagehandler.h" | 38 #include "webrtc/base/messagehandler.h" |
| 40 #include "webrtc/base/scoped_ref_ptr.h" | 39 #include "webrtc/base/scoped_ref_ptr.h" |
| 41 #include "webrtc/base/sigslot.h" | 40 #include "webrtc/base/sigslot.h" |
| 41 #include "webrtc/media/base/mediachannel.h" |
| 42 | 42 |
| 43 namespace webrtc { | 43 namespace webrtc { |
| 44 | 44 |
| 45 class DataChannel; | 45 class DataChannel; |
| 46 | 46 |
| 47 class DataChannelProviderInterface { | 47 class DataChannelProviderInterface { |
| 48 public: | 48 public: |
| 49 // Sends the data to the transport. | 49 // Sends the data to the transport. |
| 50 virtual bool SendData(const cricket::SendDataParams& params, | 50 virtual bool SendData(const cricket::SendDataParams& params, |
| 51 const rtc::Buffer& payload, | 51 const rtc::Buffer& payload, |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 PROXY_CONSTMETHOD0(int, id) | 290 PROXY_CONSTMETHOD0(int, id) |
| 291 PROXY_CONSTMETHOD0(DataState, state) | 291 PROXY_CONSTMETHOD0(DataState, state) |
| 292 PROXY_CONSTMETHOD0(uint64_t, buffered_amount) | 292 PROXY_CONSTMETHOD0(uint64_t, buffered_amount) |
| 293 PROXY_METHOD0(void, Close) | 293 PROXY_METHOD0(void, Close) |
| 294 PROXY_METHOD1(bool, Send, const DataBuffer&) | 294 PROXY_METHOD1(bool, Send, const DataBuffer&) |
| 295 END_PROXY() | 295 END_PROXY() |
| 296 | 296 |
| 297 } // namespace webrtc | 297 } // namespace webrtc |
| 298 | 298 |
| 299 #endif // TALK_APP_WEBRTC_DATACHANNEL_H_ | 299 #endif // TALK_APP_WEBRTC_DATACHANNEL_H_ |
| OLD | NEW |