1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef REMOTING_PROTOCOL_WEBRTC_BANDWIDTH_ESTIMATOR_H_
6 #define REMOTING_PROTOCOL_WEBRTC_BANDWIDTH_ESTIMATOR_H_
7 
8 #include "remoting/protocol/bandwidth_estimator.h"
9 
10 namespace remoting {
11 namespace protocol {
12 
13 // An implementation of BandwidthEstimator relying on the estimate from WebRTC.
14 class WebrtcBandwidthEstimator final : public BandwidthEstimator {
15  public:
16   WebrtcBandwidthEstimator();
17   ~WebrtcBandwidthEstimator() override;
18 
19   void OnBitrateEstimation(int bitrate_kbps) override;
20   int GetBitrateKbps() override;
21 
22  private:
23   int bitrate_kbps_ = 0;
24 };
25 
26 }  // namespace protocol
27 }  // namespace remoting
28 
29 #endif  // REMOTING_PROTOCOL_WEBRTC_BANDWIDTH_ESTIMATOR_H_
30