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

Unified Diff: webrtc/base/rate_limiter.h

Issue 2735423002: Mark |Clock*| as |const Clock*| (for some CongestionController and BWE related modules) (Closed)
Patch Set: Rebased Created 3 years, 9 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 | « no previous file | webrtc/base/rate_limiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/rate_limiter.h
diff --git a/webrtc/base/rate_limiter.h b/webrtc/base/rate_limiter.h
index 5809fc125a74a05cce4205071362c397d74161f8..ceeccfc5a4df820ac147152b435742c8b3f11d2f 100644
--- a/webrtc/base/rate_limiter.h
+++ b/webrtc/base/rate_limiter.h
@@ -26,7 +26,7 @@ class Clock;
// methods will acquire (the same) lock befeore executing.
class RateLimiter {
public:
- RateLimiter(Clock* clock, int64_t max_window_ms);
+ RateLimiter(const Clock* clock, int64_t max_window_ms);
~RateLimiter();
// Try to use rate to send bytes. Returns true on success and if so updates
@@ -42,7 +42,7 @@ class RateLimiter {
bool SetWindowSize(int64_t window_size_ms);
private:
- Clock* const clock_;
+ const Clock* const clock_;
rtc::CriticalSection lock_;
RateStatistics current_rate_ GUARDED_BY(lock_);
int64_t window_size_ms_ GUARDED_BY(lock_);
« no previous file with comments | « no previous file | webrtc/base/rate_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698