OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/renderer/media/cast_session.h" | 5 #include "chrome/renderer/media/cast_session.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
8 #include "chrome/renderer/media/cast_session_delegate.h" | 10 #include "chrome/renderer/media/cast_session_delegate.h" |
9 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
10 #include "content/public/renderer/video_encode_accelerator.h" | 12 #include "content/public/renderer/video_encode_accelerator.h" |
11 #include "media/base/bind_to_current_loop.h" | 13 #include "media/base/bind_to_current_loop.h" |
12 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
13 #include "media/cast/cast_sender.h" | 15 #include "media/cast/cast_sender.h" |
14 #include "media/cast/logging/logging_defines.h" | 16 #include "media/cast/logging/logging_defines.h" |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 120 |
119 void CastSession::GetStatsAndReset(bool is_audio, | 121 void CastSession::GetStatsAndReset(bool is_audio, |
120 const StatsCallback& callback) { | 122 const StatsCallback& callback) { |
121 io_task_runner_->PostTask( | 123 io_task_runner_->PostTask( |
122 FROM_HERE, | 124 FROM_HERE, |
123 base::Bind(&CastSessionDelegate::GetStatsAndReset, | 125 base::Bind(&CastSessionDelegate::GetStatsAndReset, |
124 base::Unretained(delegate_.get()), | 126 base::Unretained(delegate_.get()), |
125 is_audio, | 127 is_audio, |
126 media::BindToCurrentLoop(callback))); | 128 media::BindToCurrentLoop(callback))); |
127 } | 129 } |
OLD | NEW |