OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_BASE_WALL_CLOCK_TIME_SOURCE_H_ | 5 #ifndef MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_ |
6 #define MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_ | 6 #define MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
11 #include "base/time/default_tick_clock.h" | 10 #include "base/time/default_tick_clock.h" |
12 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
13 #include "media/base/time_source.h" | 12 #include "media/base/time_source.h" |
14 | 13 |
15 namespace media { | 14 namespace media { |
16 | 15 |
17 // A time source that uses interpolation based on the system clock. | 16 // A time source that uses interpolation based on the system clock. |
18 class MEDIA_EXPORT WallClockTimeSource : public TimeSource { | 17 class MEDIA_EXPORT WallClockTimeSource : public TimeSource { |
19 public: | 18 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // TODO(scherkus): Remove internal locking from this class after access to | 54 // TODO(scherkus): Remove internal locking from this class after access to |
56 // Renderer::CurrentMediaTime() is single threaded http://crbug.com/370634 | 55 // Renderer::CurrentMediaTime() is single threaded http://crbug.com/370634 |
57 base::Lock lock_; | 56 base::Lock lock_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(WallClockTimeSource); | 58 DISALLOW_COPY_AND_ASSIGN(WallClockTimeSource); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace media | 61 } // namespace media |
63 | 62 |
64 #endif // MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_ | 63 #endif // MEDIA_BASE_WALL_CLOCK_TIME_SOURCE_H_ |
OLD | NEW |