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

Side by Side Diff: content/renderer/media/render_media_log.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/renderer/media/render_media_log.h" 5 #include "content/renderer/media/render_media_log.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 DVLOG(1) << "media log events array size " << queued_media_events_.size(); 51 DVLOG(1) << "media log events array size " << queued_media_events_.size();
52 52
53 RenderThread::Get()->Send( 53 RenderThread::Get()->Send(
54 new ViewHostMsg_MediaLogEvents(queued_media_events_)); 54 new ViewHostMsg_MediaLogEvents(queued_media_events_));
55 queued_media_events_.clear(); 55 queued_media_events_.clear();
56 } 56 }
57 57
58 RenderMediaLog::~RenderMediaLog() {} 58 RenderMediaLog::~RenderMediaLog() {}
59 59
60 void RenderMediaLog::SetTickClockForTesting( 60 void RenderMediaLog::SetTickClockForTesting(
61 scoped_ptr<base::TickClock> tick_clock) { 61 const scoped_refptr<base::TickClock>& tick_clock) {
62 tick_clock_.swap(tick_clock); 62 tick_clock_ = tick_clock;
63 last_ipc_send_time_ = tick_clock_->NowTicks(); 63 last_ipc_send_time_ = tick_clock_->NowTicks();
64 } 64 }
65 65
66 } // namespace content 66 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/render_media_log.h ('k') | extensions/browser/api/cast_channel/cast_channel_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698