Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: services/media/factory_service/media_sink_impl.h

Issue 1874003002: Motown: Get rid of speculative clock definition (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/services/media/control/interfaces/media_source.mojom ('k') | services/media/factory_service/media_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698