| 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_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" |
| 11 #include "content/renderer/render_thread_impl.h" | 11 #include "content/renderer/render_thread_impl.h" |
| 12 | 12 |
| 13 using base::Time; | 13 using base::Time; |
| 14 using base::TimeDelta; | 14 using base::TimeDelta; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 RenderMediaLog::RenderMediaLog() | 18 RenderMediaLog::RenderMediaLog() |
| 19 : render_loop_(base::MessageLoopProxy::current()), | 19 : render_loop_(base::MessageLoopProxy::current()), |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 last_ipc_send_time_ = curr_time; | 36 last_ipc_send_time_ = curr_time; |
| 37 DVLOG(1) << "media log events array size " << queued_media_events_.size(); | 37 DVLOG(1) << "media log events array size " << queued_media_events_.size(); |
| 38 RenderThreadImpl::current()->Send( | 38 RenderThreadImpl::current()->Send( |
| 39 new ViewHostMsg_MediaLogEvents(queued_media_events_)); | 39 new ViewHostMsg_MediaLogEvents(queued_media_events_)); |
| 40 queued_media_events_.clear(); | 40 queued_media_events_.clear(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 RenderMediaLog::~RenderMediaLog() {} | 43 RenderMediaLog::~RenderMediaLog() {} |
| 44 | 44 |
| 45 } // namespace content | 45 } // namespace content |
| OLD | NEW |