Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/mojo/services/mojo_renderer_impl.h" | 5 #include "media/mojo/services/mojo_renderer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "media/base/bind_to_current_loop.h" | 11 #include "media/base/bind_to_current_loop.h" |
| 12 #include "media/base/demuxer_stream_provider.h" | 12 #include "media/base/demuxer_stream_provider.h" |
| 13 #include "media/mojo/services/mojo_demuxer_stream_impl.h" | 13 #include "media/mojo/services/mojo_demuxer_stream_impl.h" |
| 14 #include "mojo/public/cpp/application/connect.h" | 14 #include "mojo/public/cpp/application/connect.h" |
| 15 #include "mojo/public/cpp/bindings/interface_impl.h" | 15 #include "mojo/public/cpp/bindings/interface_impl.h" |
| 16 #include "mojo/public/cpp/system/data_pipe.h" | |
|
xhwang
2014/12/06 00:03:44
What is this for?
DaleCurtis
2014/12/06 00:42:59
Originally to fix a compile error... but it seems
| |
| 16 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 17 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 17 | 18 |
| 18 namespace media { | 19 namespace media { |
| 19 | 20 |
| 20 MojoRendererImpl::MojoRendererImpl( | 21 MojoRendererImpl::MojoRendererImpl( |
| 21 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 22 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 22 mojo::ServiceProvider* media_renderer_provider) | 23 mojo::ServiceProvider* media_renderer_provider) |
| 23 : task_runner_(task_runner), | 24 : task_runner_(task_runner), |
| 24 weak_factory_(this) { | 25 weak_factory_(this) { |
| 25 DVLOG(1) << __FUNCTION__; | 26 DVLOG(1) << __FUNCTION__; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 | 202 |
| 202 void MojoRendererImpl::OnInitialized() { | 203 void MojoRendererImpl::OnInitialized() { |
| 203 DVLOG(1) << __FUNCTION__; | 204 DVLOG(1) << __FUNCTION__; |
| 204 DCHECK(task_runner_->BelongsToCurrentThread()); | 205 DCHECK(task_runner_->BelongsToCurrentThread()); |
| 205 DCHECK(!init_cb_.is_null()); | 206 DCHECK(!init_cb_.is_null()); |
| 206 | 207 |
| 207 base::ResetAndReturn(&init_cb_).Run(); | 208 base::ResetAndReturn(&init_cb_).Run(); |
| 208 } | 209 } |
| 209 | 210 |
| 210 } // namespace media | 211 } // namespace media |
| OLD | NEW |