Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: webrtc/call/congestion_controller.h

Issue 1718473002: Move congestion controller to a separate module. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add presubmit Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/congestion_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/congestion_controller.h
diff --git a/webrtc/call/congestion_controller.h b/webrtc/call/congestion_controller.h
deleted file mode 100644
index ddc7abb97ec9ab4ef5cf23241ba0d7624ccb4bd7..0000000000000000000000000000000000000000
--- a/webrtc/call/congestion_controller.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_CALL_CONGESTION_CONTROLLER_H_
-#define WEBRTC_CALL_CONGESTION_CONTROLLER_H_
-
-#include "webrtc/base/scoped_ptr.h"
-#include "webrtc/base/thread_checker.h"
-#include "webrtc/modules/include/module.h"
-#include "webrtc/modules/include/module_common_types.h"
-#include "webrtc/modules/pacing/packet_router.h"
-#include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h"
-#include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h"
-#include "webrtc/stream.h"
-
-namespace rtc {
-struct SentPacket;
-}
-
-namespace webrtc {
-
-class BitrateController;
-class BitrateObserver;
-class Clock;
-class PacedSender;
-class ProcessThread;
-class RemoteBitrateEstimator;
-class RemoteBitrateObserver;
-class TransportFeedbackObserver;
-
-class CongestionController : public CallStatsObserver, public Module {
- public:
- CongestionController(Clock* clock,
- BitrateObserver* bitrate_observer,
- RemoteBitrateObserver* remote_bitrate_observer);
- virtual ~CongestionController();
-
- virtual void SetBweBitrates(int min_bitrate_bps,
- int start_bitrate_bps,
- int max_bitrate_bps);
- virtual void SignalNetworkState(NetworkState state);
- virtual BitrateController* GetBitrateController() const;
- virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator(
- bool send_side_bwe);
- virtual int64_t GetPacerQueuingDelayMs() const;
- virtual PacedSender* pacer() { return pacer_.get(); }
- virtual PacketRouter* packet_router() { return &packet_router_; }
- virtual TransportFeedbackObserver* GetTransportFeedbackObserver();
-
- virtual void UpdatePacerBitrate(int bitrate_kbps,
- int max_bitrate_kbps,
- int min_bitrate_kbps);
-
- virtual void OnSentPacket(const rtc::SentPacket& sent_packet);
-
- // Implements CallStatsObserver.
- void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override;
-
- // Implements Module.
- int64_t TimeUntilNextProcess() override;
- int32_t Process() override;
-
- private:
- Clock* const clock_;
- rtc::ThreadChecker config_thread_checker_;
- const rtc::scoped_ptr<PacedSender> pacer_;
- const rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_;
- const rtc::scoped_ptr<ProcessThread> pacer_thread_;
- const rtc::scoped_ptr<BitrateController> bitrate_controller_;
- PacketRouter packet_router_;
- RemoteEstimatorProxy remote_estimator_proxy_;
- TransportFeedbackAdapter transport_feedback_adapter_;
- int min_bitrate_bps_;
-
- RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController);
-};
-
-} // namespace webrtc
-
-#endif // WEBRTC_CALL_CONGESTION_CONTROLLER_H_
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/congestion_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698