| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |