blob: 03547d88bac90806fb66fc0886c4c90bfce671cb [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
pwestin@webrtc.org82dcc9f2013-04-02 20:37:14 +000014#include "webrtc/typedefs.h"
15#include "webrtc/video_engine/include/vie_network.h"
16#include "webrtc/video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000018namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000019
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000020class ViESharedData;
21
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000022class ViENetworkImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000023 : public ViENetwork,
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000024 public ViERefCount {
25 public:
26 // Implements ViENetwork.
27 virtual int Release();
stefan@webrtc.orgbfacda62013-03-27 16:36:01 +000028 virtual void SetNetworkTransmissionState(const int video_channel,
29 const bool is_transmitting);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000030 virtual int RegisterSendTransport(const int video_channel,
31 Transport& transport);
32 virtual int DeregisterSendTransport(const int video_channel);
33 virtual int ReceivedRTPPacket(const int video_channel,
34 const void* data,
wu@webrtc.orga9890802013-12-13 00:21:03 +000035 const int length,
36 const PacketTime& packet_time);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000037 virtual int ReceivedRTCPPacket(const int video_channel,
38 const void* data,
39 const int length);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000040 virtual int SetMTU(int video_channel, unsigned int mtu);
stefan@webrtc.orga16147c2014-03-25 10:37:31 +000041
solenberg@webrtc.orgb1f50102014-03-24 10:38:25 +000042 virtual int ReceivedBWEPacket(const int video_channel,
43 int64_t arrival_time_ms, int payload_size, const RTPHeader& header);
stefan@webrtc.orga16147c2014-03-25 10:37:31 +000044
45 virtual bool SetBandwidthEstimationConfig(int video_channel,
46 const webrtc::Config& config);
47
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000048 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000049 explicit ViENetworkImpl(ViESharedData* shared_data);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000050 virtual ~ViENetworkImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000051
52 private:
53 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000054};
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000055
56} // namespace webrtc
57
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000058#endif // WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_