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

Side by Side Diff: media/base/wall_clock_time_source.h

Issue 379343005: Introduce media::TimeSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_
6 #define MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_
7
8 #include "media/base/media_export.h"
9 #include "media/base/time_source.h"
10
11 namespace media {
12
13 class MEDIA_EXPORT WallClockTimeSource : public TimeSource {
14 public:
15 WallClockTimeSource();
16 virtual ~WallClockTimeSource();
17
18 // TimeSource implementation.
19 virtual void StartTicking() OVERRIDE;
20 virtual void StopTicking() OVERRIDE;
21 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
22 virtual void SetMediaTimestamp(base::TimeDelta timestamp) OVERRIDE;
23 virtual base::TimeDelta CurrentMediaTimestamp() OVERRIDE;
24
25 private:
26 bool ticking_;
27 float playback_rate_;
28 base::TimeDelta base_timestamp_;
29 base::TimeTicks reference_wall_ticks_;
xhwang 2014/07/12 06:36:44 Add comments for these variables. It's not obvious
scherkus (not reviewing) 2014/07/17 23:52:56 Done. Let me know if this is what you had in mind
30
31 DISALLOW_COPY_AND_ASSIGN(WallClockTimeSource);
32 };
33
34 } // namespace media
35
36 #endif // MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698