pbos@webrtc.org | e75a1bf | 2013-09-18 11:52:42 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #ifndef WEBRTC_VIDEO_ENGINE_INTERNAL_TRANSPORT_ADAPTER_H_ |
| 11 | #define WEBRTC_VIDEO_ENGINE_INTERNAL_TRANSPORT_ADAPTER_H_ |
| 12 | |
| 13 | #include "webrtc/common_types.h" |
| 14 | #include "webrtc/video_engine/new_include/transport.h" |
| 15 | |
| 16 | namespace webrtc { |
| 17 | namespace internal { |
| 18 | |
| 19 | class TransportAdapter : public webrtc::Transport { |
| 20 | public: |
| 21 | explicit TransportAdapter(newapi::Transport* transport); |
| 22 | |
| 23 | virtual int SendPacket(int /*channel*/, const void* packet, int length) |
| 24 | OVERRIDE; |
| 25 | virtual int SendRTCPPacket(int /*channel*/, const void* packet, int length) |
| 26 | OVERRIDE; |
| 27 | |
| 28 | private: |
| 29 | newapi::Transport *transport_; |
| 30 | }; |
| 31 | } // namespace internal |
| 32 | } // namespace webrtc |
| 33 | |
| 34 | #endif // WEBRTC_VIDEO_ENGINE_INTERNAL_TRANSPORT_ADAPTER_H_ |