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

Unified Diff: media/cast/logging/receiver_time_offset_estimator_impl.h

Issue 482383005: Cast logging: Additional stats for getStats() API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@REAL-NEW-MASTER
Patch Set: Rebase Created 6 years, 4 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
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);
« no previous file with comments | « media/cast/logging/raw_event_subscriber_bundle.cc ('k') | media/cast/logging/receiver_time_offset_estimator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698