| 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_SOURCE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ |
| 6 #define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ | 6 #define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Runs a seek callback. | 111 // Runs a seek callback. |
| 112 static void RunSeekCallback(const SeekCallback& callback); | 112 static void RunSeekCallback(const SeekCallback& callback); |
| 113 | 113 |
| 114 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 114 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 115 Array<MediaTypeSetPtr> allowed_media_types_; | 115 Array<MediaTypeSetPtr> allowed_media_types_; |
| 116 Graph graph_; | 116 Graph graph_; |
| 117 PartRef demux_part_; | 117 PartRef demux_part_; |
| 118 std::shared_ptr<Demux> demux_; | 118 std::shared_ptr<Demux> demux_; |
| 119 Incident init_complete_; | 119 Incident init_complete_; |
| 120 std::vector<std::unique_ptr<Stream>> streams_; | 120 std::vector<std::unique_ptr<Stream>> streams_; |
| 121 MediaState state_ = MediaState::UNPREPARED; | |
| 122 MojoPublisher<GetStatusCallback> status_publisher_; | 121 MojoPublisher<GetStatusCallback> status_publisher_; |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace media | 124 } // namespace media |
| 126 } // namespace mojo | 125 } // namespace mojo |
| 127 | 126 |
| 128 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ | 127 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ |
| OLD | NEW |