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

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

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 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 SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_ 5 #ifndef SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_
6 #define SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_ 6 #define SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_
7 7
8 #include "mojo/public/cpp/application/application_impl.h"
9 #include "mojo/services/media/audio/interfaces/audio_track.mojom.h" 8 #include "mojo/services/media/audio/interfaces/audio_track.mojom.h"
10 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" 9 #include "mojo/services/media/common/interfaces/media_transport.mojom.h"
11 #include "services/media/framework/types/stream_type.h" 10 #include "services/media/framework/types/stream_type.h"
12 11
13 namespace mojo { 12 namespace mojo {
13
14 class Shell;
15
14 namespace media { 16 namespace media {
15 17
16 // Controls an audio track. 18 // Controls an audio track.
17 class AudioTrackController { 19 class AudioTrackController {
18 public: 20 public:
19 using GetSupportedMediaTypesCallback = std::function<void( 21 using GetSupportedMediaTypesCallback = std::function<void(
20 std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>>)>; 22 std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>>)>;
21 using ConfigureCallback = std::function<void(MediaConsumerPtr)>; 23 using ConfigureCallback = std::function<void(MediaConsumerPtr)>;
22 24
23 AudioTrackController(const String& url, ApplicationImpl* app); 25 AudioTrackController(const String& url, Shell* shell);
24 26
25 ~AudioTrackController(); 27 ~AudioTrackController();
26 28
27 // Gets the media types supported by the audio track. 29 // Gets the media types supported by the audio track.
28 void GetSupportedMediaTypes(const GetSupportedMediaTypesCallback& callback); 30 void GetSupportedMediaTypes(const GetSupportedMediaTypesCallback& callback);
29 31
30 // Configures the controller. 32 // Configures the controller.
31 void Configure(const std::unique_ptr<StreamType>& stream_type, 33 void Configure(const std::unique_ptr<StreamType>& stream_type,
32 const ConfigureCallback& callback); 34 const ConfigureCallback& callback);
33 35
34 // Gets the timeline control site for the audio track. 36 // Gets the timeline control site for the audio track.
35 void GetTimelineControlSite(InterfaceRequest<MediaTimelineControlSite> req); 37 void GetTimelineControlSite(InterfaceRequest<MediaTimelineControlSite> req);
36 38
37 private: 39 private:
38 AudioTrackPtr audio_track_; 40 AudioTrackPtr audio_track_;
39 }; 41 };
40 42
41 } // namespace media 43 } // namespace media
42 } // namespace mojo 44 } // namespace mojo
43 45
44 #endif // SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_ 46 #endif // SERVICES_MEDIA_FACTORY_SERVICE_AUDIO_TRACK_CONTROLLER_H_
OLDNEW
« no previous file with comments | « services/log/log_impl_unittest.cc ('k') | services/media/factory_service/audio_track_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698