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

Side by Side Diff: components/copresence/handlers/audio/tick_clock_ref_counted.h

Issue 665353002: Add AudioDirectiveHandler timed tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: build fix. Created 6 years, 1 month 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
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 COMPONENTS_COPRESENCE_HANDLERS_AUDIO_TICK_CLOCK_REF_COUNTED_H_
6 #define COMPONENTS_COPRESENCE_HANDLERS_AUDIO_TICK_CLOCK_REF_COUNTED_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/time/time.h"
12
13 namespace base {
14 class TickClock;
15 }
16
17 namespace copresence {
18
19 class TickClockRefCounted
20 : public base::RefCountedThreadSafe<TickClockRefCounted> {
21 public:
22 explicit TickClockRefCounted(scoped_ptr<base::TickClock> clock);
23 base::TimeTicks NowTicks();
24
25 private:
26 friend class base::RefCountedThreadSafe<TickClockRefCounted>;
27 virtual ~TickClockRefCounted();
28
29 scoped_ptr<base::TickClock> clock_;
30
31 DISALLOW_COPY_AND_ASSIGN(TickClockRefCounted);
32 };
33
34 } // namespace copresence
35
36 #endif // COMPONENTS_COPRESENCE_HANDLERS_AUDIO_TICK_CLOCK_REF_COUNTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698