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

Side by Side Diff: trunk/src/media/cast/congestion_control/congestion_control.h

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_ 5 #ifndef MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_
6 #define MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_ 6 #define MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/default_tick_clock.h" 10 #include "base/time/default_tick_clock.h"
11 #include "base/time/tick_clock.h" 11 #include "base/time/tick_clock.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace media { 14 namespace media {
15 namespace cast { 15 namespace cast {
16 16
17 class CongestionControl { 17 class CongestionControl {
18 public: 18 public:
19 CongestionControl(float congestion_control_back_off, 19 CongestionControl(float congestion_control_back_off,
20 uint32 max_bitrate_configured, 20 uint32 max_bitrate_configured,
21 uint32 min_bitrate_configured, 21 uint32 min_bitrate_configured,
22 uint32 start_bitrate); 22 uint32 start_bitrate);
23 23
24 virtual ~CongestionControl(); 24 virtual ~CongestionControl() {}
25 25
26 // Don't call OnAck if the same message contain a NACK. 26 // Don't call OnAck if the same message contain a NACK.
27 // Returns true if the bitrate have changed. 27 // Returns true if the bitrate have changed.
28 bool OnAck(base::TimeDelta rtt_ms, uint32* new_bitrate); 28 bool OnAck(base::TimeDelta rtt_ms, uint32* new_bitrate);
29 29
30 // Returns true if the bitrate have changed. 30 // Returns true if the bitrate have changed.
31 bool OnNack(base::TimeDelta rtt_ms, uint32* new_bitrate); 31 bool OnNack(base::TimeDelta rtt_ms, uint32* new_bitrate);
32 32
33 void set_clock(base::TickClock* clock) { 33 void set_clock(base::TickClock* clock) {
34 clock_ = clock; 34 clock_ = clock;
(...skipping 10 matching lines...) Expand all
45 scoped_ptr<base::TickClock> default_tick_clock_; 45 scoped_ptr<base::TickClock> default_tick_clock_;
46 base::TickClock* clock_; 46 base::TickClock* clock_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(CongestionControl); 48 DISALLOW_COPY_AND_ASSIGN(CongestionControl);
49 }; 49 };
50 50
51 } // namespace cast 51 } // namespace cast
52 } // namespace media 52 } // namespace media
53 53
54 #endif // MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_ 54 #endif // MEDIA_CAST_CONGESTION_CONTROL_CONGESTION_CONTROL_H_
OLDNEW
« no previous file with comments | « trunk/src/media/cast/cast_thread.cc ('k') | trunk/src/media/cast/congestion_control/congestion_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698