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

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

Issue 1979723002: ApplicationConnection devolution, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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_FACTORY_SERVICE_H_ 5 #ifndef MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_
6 #define MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_ 6 #define MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_
7 7
8 #include <unordered_set> 8 #include <unordered_set>
9 9
10 #include "mojo/common/binding_set.h" 10 #include "mojo/common/binding_set.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Binding<Interface> binding_; 69 Binding<Interface> binding_;
70 }; 70 };
71 71
72 MediaFactoryService(); 72 MediaFactoryService();
73 73
74 ~MediaFactoryService() override; 74 ~MediaFactoryService() override;
75 75
76 // ApplicationDelegate implementation. 76 // ApplicationDelegate implementation.
77 void Initialize(ApplicationImpl* app) override; 77 void Initialize(ApplicationImpl* app) override;
78 78
79 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; 79 bool ConfigureIncomingConnection(
80 ServiceProviderImpl* service_provider_impl) override;
80 81
81 // MediaFactory implementation. 82 // MediaFactory implementation.
82 void CreatePlayer(InterfaceHandle<SeekingReader> reader, 83 void CreatePlayer(InterfaceHandle<SeekingReader> reader,
83 InterfaceRequest<MediaPlayer> player) override; 84 InterfaceRequest<MediaPlayer> player) override;
84 85
85 void CreateSource(InterfaceHandle<SeekingReader> reader, 86 void CreateSource(InterfaceHandle<SeekingReader> reader,
86 Array<MediaTypeSetPtr> allowed_media_types, 87 Array<MediaTypeSetPtr> allowed_media_types,
87 InterfaceRequest<MediaSource> source) override; 88 InterfaceRequest<MediaSource> source) override;
88 89
89 void CreateSink(const String& destination_url, 90 void CreateSink(const String& destination_url,
(...skipping 23 matching lines...) Expand all
113 if (!(condition)) { \ 114 if (!(condition)) { \
114 LOG(ERROR) << "request precondition failed: " #condition "."; \ 115 LOG(ERROR) << "request precondition failed: " #condition "."; \
115 UnbindAndReleaseFromOwner(); \ 116 UnbindAndReleaseFromOwner(); \
116 return; \ 117 return; \
117 } 118 }
118 119
119 } // namespace media 120 } // namespace media
120 } // namespace mojo 121 } // namespace mojo
121 122
122 #endif // MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_ 123 #endif // MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « services/media/audio/audio_server_app.cc ('k') | services/media/factory_service/factory_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698