OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chromecast/browser/media/media_pipeline_backend_factory.h" | 5 #include "chromecast/browser/media/media_pipeline_backend_factory.h" |
6 #include "media/base/renderer.h" | 6 #include "media/base/renderer.h" |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 class SingleThreadTaskRunner; | 9 class SingleThreadTaskRunner; |
10 } // namespace base | 10 } // namespace base |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool HasAudio() final; | 44 bool HasAudio() final; |
45 bool HasVideo() final; | 45 bool HasVideo() final; |
46 | 46 |
47 private: | 47 private: |
48 enum Stream { STREAM_AUDIO, STREAM_VIDEO }; | 48 enum Stream { STREAM_AUDIO, STREAM_VIDEO }; |
49 void OnEos(Stream stream); | 49 void OnEos(Stream stream); |
50 | 50 |
51 const CreateMediaPipelineBackendCB create_backend_cb_; | 51 const CreateMediaPipelineBackendCB create_backend_cb_; |
52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
53 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_; | 53 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_; |
54 scoped_ptr<TaskRunnerImpl> backend_task_runner_; | 54 std::unique_ptr<TaskRunnerImpl> backend_task_runner_; |
55 scoped_ptr<MediaPipelineImpl> pipeline_; | 55 std::unique_ptr<MediaPipelineImpl> pipeline_; |
56 bool eos_[2]; | 56 bool eos_[2]; |
57 base::Closure ended_cb_; | 57 base::Closure ended_cb_; |
58 DISALLOW_COPY_AND_ASSIGN(CastRenderer); | 58 DISALLOW_COPY_AND_ASSIGN(CastRenderer); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace media | 61 } // namespace media |
62 } // namespace chromecast | 62 } // namespace chromecast |
OLD | NEW |