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

Unified Diff: components/copresence/handlers/audio/tick_clock_ref_counted.h

Issue 690213004: Refactoring AudioDirectiveHandler to support testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/handlers/audio/tick_clock_ref_counted.h
diff --git a/components/copresence/handlers/audio/tick_clock_ref_counted.h b/components/copresence/handlers/audio/tick_clock_ref_counted.h
index 5bece752faaff08ae7b0fed869a312c80153b318..c461432feb0eb9a5db013d0cf90d5793ce1732f0 100644
--- a/components/copresence/handlers/audio/tick_clock_ref_counted.h
+++ b/components/copresence/handlers/audio/tick_clock_ref_counted.h
@@ -8,10 +8,10 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
namespace base {
class TickClock;
+class TimeTicks;
}
namespace copresence {
@@ -20,7 +20,11 @@ class TickClockRefCounted
: public base::RefCountedThreadSafe<TickClockRefCounted> {
public:
explicit TickClockRefCounted(scoped_ptr<base::TickClock> clock);
- base::TimeTicks NowTicks();
+
+ // Takes ownership of the clock.
+ explicit TickClockRefCounted(base::TickClock* clock);
+
+ base::TimeTicks NowTicks() const;
private:
friend class base::RefCountedThreadSafe<TickClockRefCounted>;

Powered by Google App Engine
This is Rietveld 408576698