| 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 <deque> | 8 #include <deque> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 public: | 29 public: |
| 30 static std::shared_ptr<MediaSinkImpl> Create( | 30 static std::shared_ptr<MediaSinkImpl> Create( |
| 31 const String& destination_url, | 31 const String& destination_url, |
| 32 MediaTypePtr media_type, | 32 MediaTypePtr media_type, |
| 33 InterfaceRequest<MediaSink> request, | 33 InterfaceRequest<MediaSink> request, |
| 34 MediaFactoryService* owner); | 34 MediaFactoryService* owner); |
| 35 | 35 |
| 36 ~MediaSinkImpl() override; | 36 ~MediaSinkImpl() override; |
| 37 | 37 |
| 38 // MediaSink implementation. | 38 // MediaSink implementation. |
| 39 void GetClockDisposition( | |
| 40 const GetClockDispositionCallback& callback) override; | |
| 41 | |
| 42 void GetMasterClock(InterfaceRequest<Clock> master_clock) override; | |
| 43 | |
| 44 void SetMasterClock(InterfaceHandle<Clock> master_clock) override; | |
| 45 | |
| 46 void GetConsumer(InterfaceRequest<MediaConsumer> consumer) override; | 39 void GetConsumer(InterfaceRequest<MediaConsumer> consumer) override; |
| 47 | 40 |
| 48 void GetStatus(uint64_t version_last_seen, | 41 void GetStatus(uint64_t version_last_seen, |
| 49 const GetStatusCallback& callback) override; | 42 const GetStatusCallback& callback) override; |
| 50 | 43 |
| 51 void Play() override; | 44 void Play() override; |
| 52 | 45 |
| 53 void Pause() override; | 46 void Pause() override; |
| 54 | 47 |
| 55 private: | 48 private: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 83 TimelineTransformPtr status_transform_; | 76 TimelineTransformPtr status_transform_; |
| 84 std::deque<GetStatusCallback> pending_status_requests_; | 77 std::deque<GetStatusCallback> pending_status_requests_; |
| 85 uint32_t frames_per_second_ = 0u; | 78 uint32_t frames_per_second_ = 0u; |
| 86 bool flushed_ = true; | 79 bool flushed_ = true; |
| 87 }; | 80 }; |
| 88 | 81 |
| 89 } // namespace media | 82 } // namespace media |
| 90 } // namespace mojo | 83 } // namespace mojo |
| 91 | 84 |
| 92 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ | 85 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SINK_IMPL_H_ |
| OLD | NEW |