| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |