| Index: media/cast/logging/receiver_time_offset_estimator_impl.h
|
| diff --git a/media/cast/logging/receiver_time_offset_estimator_impl.h b/media/cast/logging/receiver_time_offset_estimator_impl.h
|
| index 1d0f6c8357f8c762f803e2f44d42c7d9d261c551..f0abd297f633571fa420e9ed5b26ce32751e5dd9 100644
|
| --- a/media/cast/logging/receiver_time_offset_estimator_impl.h
|
| +++ b/media/cast/logging/receiver_time_offset_estimator_impl.h
|
| @@ -10,6 +10,10 @@
|
| #include "media/cast/logging/logging_defines.h"
|
| #include "media/cast/logging/receiver_time_offset_estimator.h"
|
|
|
| +namespace base {
|
| +class TickClock;
|
| +}
|
| +
|
| namespace media {
|
| namespace cast {
|
|
|
| @@ -24,7 +28,7 @@ namespace cast {
|
| // The bound will become better as the latency between the events decreases.
|
| class ReceiverTimeOffsetEstimatorImpl : public ReceiverTimeOffsetEstimator {
|
| public:
|
| - ReceiverTimeOffsetEstimatorImpl();
|
| + ReceiverTimeOffsetEstimatorImpl(base::TickClock* clock);
|
|
|
| virtual ~ReceiverTimeOffsetEstimatorImpl();
|
|
|
| @@ -51,8 +55,14 @@ class ReceiverTimeOffsetEstimatorImpl : public ReceiverTimeOffsetEstimator {
|
| EventTimesMap event_times_map_;
|
|
|
| bool bounded_;
|
| + base::TickClock* clock_; // Not owned by this class.
|
| +
|
| + bool offset_bounds_valid_;
|
| base::TimeDelta offset_lower_bound_;
|
| base::TimeDelta offset_upper_bound_;
|
| + base::TimeDelta prev_offset_lower_bound_;
|
| + base::TimeDelta prev_offset_upper_bound_;
|
| + base::TimeTicks last_reset_time_;
|
|
|
| base::ThreadChecker thread_checker_;
|
| DISALLOW_COPY_AND_ASSIGN(ReceiverTimeOffsetEstimatorImpl);
|
|
|