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

Side by Side Diff: services/media/factory_service/media_source_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_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 21 matching lines...) Expand all
32 InterfaceHandle<SeekingReader> reader, 32 InterfaceHandle<SeekingReader> reader,
33 const Array<MediaTypeSetPtr>& allowed_media_types, 33 const Array<MediaTypeSetPtr>& allowed_media_types,
34 InterfaceRequest<MediaSource> request, 34 InterfaceRequest<MediaSource> request,
35 MediaFactoryService* owner); 35 MediaFactoryService* owner);
36 36
37 ~MediaSourceImpl() override; 37 ~MediaSourceImpl() override;
38 38
39 // MediaSource implementation. 39 // MediaSource implementation.
40 void GetStreams(const GetStreamsCallback& callback) override; 40 void GetStreams(const GetStreamsCallback& callback) override;
41 41
42 void GetClockDisposition(
43 const GetClockDispositionCallback& callback) override;
44
45 void GetMasterClock(InterfaceRequest<Clock> master_clock) override;
46
47 void SetMasterClock(InterfaceHandle<Clock> master_clock) override;
48
49 void GetProducer(uint32_t stream_index, 42 void GetProducer(uint32_t stream_index,
50 InterfaceRequest<MediaProducer> producer) override; 43 InterfaceRequest<MediaProducer> producer) override;
51 44
52 void GetPullModeProducer( 45 void GetPullModeProducer(
53 uint32_t stream_index, 46 uint32_t stream_index,
54 InterfaceRequest<MediaPullModeProducer> producer) override; 47 InterfaceRequest<MediaPullModeProducer> producer) override;
55 48
56 void GetStatus(uint64_t version_last_seen, 49 void GetStatus(uint64_t version_last_seen,
57 const GetStatusCallback& callback) override; 50 const GetStatusCallback& callback) override;
58 51
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 std::vector<std::unique_ptr<Stream>> streams_; 126 std::vector<std::unique_ptr<Stream>> streams_;
134 uint64_t status_version_ = 1; 127 uint64_t status_version_ = 1;
135 MediaState state_ = MediaState::UNPREPARED; 128 MediaState state_ = MediaState::UNPREPARED;
136 std::deque<GetStatusCallback> pending_status_requests_; 129 std::deque<GetStatusCallback> pending_status_requests_;
137 }; 130 };
138 131
139 } // namespace media 132 } // namespace media
140 } // namespace mojo 133 } // namespace mojo
141 134
142 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_ 135 #endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « services/media/factory_service/media_sink_impl.cc ('k') | services/media/factory_service/media_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698