blob: a5e2e281bf1afb6c7b42a5c954d712a3d8e280b0 [file] [log] [blame]
pbos@webrtc.orge75a1bf2013-09-18 11:52:42 +00001/*
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
16namespace webrtc {
17namespace internal {
18
19class 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_