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

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

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 MediaFactoryService(); 73 MediaFactoryService();
74 74
75 ~MediaFactoryService() override; 75 ~MediaFactoryService() override;
76 76
77 // ApplicationDelegate implementation. 77 // ApplicationDelegate implementation.
78 void Initialize(ApplicationImpl* app) override; 78 void Initialize(ApplicationImpl* app) override;
79 79
80 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; 80 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
81 81
82 // InterfaceFactory<MediaFactory> implementation. 82 // InterfaceFactory<MediaFactory> implementation.
83 void Create(ApplicationConnection* connection, 83 void Create(const ConnectionContext& connection_context,
84 InterfaceRequest<MediaFactory> request) override; 84 InterfaceRequest<MediaFactory> request) override;
85 85
86 // MediaFactory implementation. 86 // MediaFactory implementation.
87 void CreatePlayer(InterfaceHandle<SeekingReader> reader, 87 void CreatePlayer(InterfaceHandle<SeekingReader> reader,
88 InterfaceRequest<MediaPlayer> player) override; 88 InterfaceRequest<MediaPlayer> player) override;
89 89
90 void CreateSource(InterfaceHandle<SeekingReader> reader, 90 void CreateSource(InterfaceHandle<SeekingReader> reader,
91 Array<MediaTypeSetPtr> allowed_media_types, 91 Array<MediaTypeSetPtr> allowed_media_types,
92 InterfaceRequest<MediaSource> source) override; 92 InterfaceRequest<MediaSource> source) override;
93 93
(...skipping 24 matching lines...) Expand all
118 if (!(condition)) { \ 118 if (!(condition)) { \
119 LOG(ERROR) << "request precondition failed: " #condition "."; \ 119 LOG(ERROR) << "request precondition failed: " #condition "."; \
120 UnbindAndReleaseFromOwner(); \ 120 UnbindAndReleaseFromOwner(); \
121 return; \ 121 return; \
122 } 122 }
123 123
124 } // namespace media 124 } // namespace media
125 } // namespace mojo 125 } // namespace mojo
126 126
127 #endif // MOJO_SERVICES_MEDIA_FACTORY_FACTORY_SERVICE_H_ 127 #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