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

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

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android Created 4 years, 7 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
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/base/wall_clock_time_source_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/base/wall_clock_time_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698