| 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 #include "services/media/factory_service/factory_service.h" | 5 #include "services/media/factory_service/factory_service.h" |
| 6 #include "services/media/factory_service/media_decoder_impl.h" | 6 #include "services/media/factory_service/media_decoder_impl.h" |
| 7 #include "services/media/factory_service/media_demux_impl.h" | 7 #include "services/media/factory_service/media_demux_impl.h" |
| 8 #include "services/media/factory_service/media_player_impl.h" | 8 #include "services/media/factory_service/media_player_impl.h" |
| 9 #include "services/media/factory_service/media_sink_impl.h" | 9 #include "services/media/factory_service/media_sink_impl.h" |
| 10 #include "services/media/factory_service/media_source_impl.h" | 10 #include "services/media/factory_service/media_source_impl.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void MediaFactoryService::Initialize(ApplicationImpl* app) { | 27 void MediaFactoryService::Initialize(ApplicationImpl* app) { |
| 28 app_ = app; | 28 app_ = app; |
| 29 } | 29 } |
| 30 | 30 |
| 31 bool MediaFactoryService::ConfigureIncomingConnection( | 31 bool MediaFactoryService::ConfigureIncomingConnection( |
| 32 ApplicationConnection* connection) { | 32 ApplicationConnection* connection) { |
| 33 connection->AddService<MediaFactory>(this); | 33 connection->AddService<MediaFactory>(this); |
| 34 return true; | 34 return true; |
| 35 } | 35 } |
| 36 | 36 |
| 37 void MediaFactoryService::Create(ApplicationConnection* connection, | 37 void MediaFactoryService::Create(const ConnectionContext& connection_context, |
| 38 InterfaceRequest<MediaFactory> request) { | 38 InterfaceRequest<MediaFactory> request) { |
| 39 bindings_.AddBinding(this, request.Pass()); | 39 bindings_.AddBinding(this, request.Pass()); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void MediaFactoryService::CreatePlayer(InterfaceHandle<SeekingReader> reader, | 42 void MediaFactoryService::CreatePlayer(InterfaceHandle<SeekingReader> reader, |
| 43 InterfaceRequest<MediaPlayer> player) { | 43 InterfaceRequest<MediaPlayer> player) { |
| 44 products_.insert(std::static_pointer_cast<ProductBase>( | 44 products_.insert(std::static_pointer_cast<ProductBase>( |
| 45 MediaPlayerImpl::Create(reader.Pass(), player.Pass(), this))); | 45 MediaPlayerImpl::Create(reader.Pass(), player.Pass(), this))); |
| 46 } | 46 } |
| 47 | 47 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 75 | 75 |
| 76 void MediaFactoryService::CreateNetworkReader( | 76 void MediaFactoryService::CreateNetworkReader( |
| 77 const String& url, | 77 const String& url, |
| 78 InterfaceRequest<SeekingReader> reader) { | 78 InterfaceRequest<SeekingReader> reader) { |
| 79 products_.insert(std::static_pointer_cast<ProductBase>( | 79 products_.insert(std::static_pointer_cast<ProductBase>( |
| 80 NetworkReaderImpl::Create(url, reader.Pass(), this))); | 80 NetworkReaderImpl::Create(url, reader.Pass(), this))); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace media | 83 } // namespace media |
| 84 } // namespace mojo | 84 } // namespace mojo |
| OLD | NEW |