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 #ifndef MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ | 5 #ifndef MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ |
6 #define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ | 6 #define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "mojo/public/cpp/application/application_impl.h" | 10 #include "mojo/public/cpp/application/application_impl.h" |
11 #include "mojo/public/cpp/bindings/binding.h" | 11 #include "mojo/public/cpp/bindings/binding.h" |
12 #include "mojo/services/media/control/interfaces/media_sink.mojom.h" | 12 #include "mojo/services/media/control/interfaces/media_sink.mojom.h" |
13 #include "mojo/services/media/core/interfaces/timeline_controller.mojom.h" | 13 #include "mojo/services/media/core/interfaces/timeline_controller.mojom.h" |
14 #include "services/media/factory_service/audio_track_controller.h" | 14 #include "services/media/factory_service/audio_track_controller.h" |
15 #include "services/media/factory_service/factory_service.h" | 15 #include "services/media/factory_service/factory_service.h" |
16 #include "services/media/framework/graph.h" | 16 #include "services/media/framework/graph.h" |
17 #include "services/media/framework/parts/decoder.h" | 17 #include "services/media/framework/parts/decoder.h" |
18 #include "services/media/framework/util/incident.h" | |
19 #include "services/media/framework_mojo/mojo_consumer.h" | 18 #include "services/media/framework_mojo/mojo_consumer.h" |
20 #include "services/media/framework_mojo/mojo_producer.h" | 19 #include "services/media/framework_mojo/mojo_producer.h" |
| 20 #include "services/util/cpp/incident.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace media { | 23 namespace media { |
24 | 24 |
25 // Mojo agent that consumes a stream and delivers it to a destination specified | 25 // Mojo agent that consumes a stream and delivers it to a destination specified |
26 // by URL. | 26 // by URL. |
27 class MediaSinkImpl : public MediaFactoryService::Product<MediaSink>, | 27 class MediaSinkImpl : public MediaFactoryService::Product<MediaSink>, |
28 public MediaSink { | 28 public MediaSink { |
29 public: | 29 public: |
30 static std::shared_ptr<MediaSinkImpl> Create( | 30 static std::shared_ptr<MediaSinkImpl> Create( |
(...skipping 20 matching lines...) Expand all Loading... |
51 Graph graph_; | 51 Graph graph_; |
52 std::shared_ptr<MojoConsumer> consumer_; | 52 std::shared_ptr<MojoConsumer> consumer_; |
53 std::shared_ptr<MojoProducer> producer_; | 53 std::shared_ptr<MojoProducer> producer_; |
54 std::unique_ptr<AudioTrackController> controller_; | 54 std::unique_ptr<AudioTrackController> controller_; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace media | 57 } // namespace media |
58 } // namespace mojo | 58 } // namespace mojo |
59 | 59 |
60 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ | 60 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ |
OLD | NEW |