| 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_TIMELINE_CONTROLLER_IMPL_H_ | 5 #ifndef MOJO_SERVICES_MEDIA_FACTORY_TIMELINE_CONTROLLER_IMPL_H_ |
| 6 #define MOJO_SERVICES_MEDIA_FACTORY_TIMELINE_CONTROLLER_IMPL_H_ | 6 #define MOJO_SERVICES_MEDIA_FACTORY_TIMELINE_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 MediaFactoryService* owner); | 144 MediaFactoryService* owner); |
| 145 | 145 |
| 146 // Takes action when a site changes its end-of-stream value. | 146 // Takes action when a site changes its end-of-stream value. |
| 147 void HandleSiteEndOfStreamChange(); | 147 void HandleSiteEndOfStreamChange(); |
| 148 | 148 |
| 149 Binding<MediaTimelineControlSite> control_site_binding_; | 149 Binding<MediaTimelineControlSite> control_site_binding_; |
| 150 Binding<TimelineConsumer> consumer_binding_; | 150 Binding<TimelineConsumer> consumer_binding_; |
| 151 MojoPublisher<GetStatusCallback> status_publisher_; | 151 MojoPublisher<GetStatusCallback> status_publisher_; |
| 152 std::vector<SiteState> site_states_; | 152 std::vector<SiteState> site_states_; |
| 153 TimelineFunction current_timeline_function_; | 153 TimelineFunction current_timeline_function_; |
| 154 bool end_of_stream_; | 154 bool end_of_stream_ = false; |
| 155 std::weak_ptr<TimelineTransition> pending_transition_; | 155 std::weak_ptr<TimelineTransition> pending_transition_; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace media | 158 } // namespace media |
| 159 } // namespace mojo | 159 } // namespace mojo |
| 160 | 160 |
| 161 #endif // MOJO_SERVICES_MEDIA_FACTORY_TIMELINE_CONTROLLER_IMPL_H_ | 161 #endif // MOJO_SERVICES_MEDIA_FACTORY_TIMELINE_CONTROLLER_IMPL_H_ |
| OLD | NEW |