| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |