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