| Index: services/media/factory_service/factory_service.cc
|
| diff --git a/services/media/factory_service/factory_service.cc b/services/media/factory_service/factory_service.cc
|
| index 0d0d9d7df70a7223c3c37eea4daa9072abe5e65b..973916556f85115d6baedfdca407428dbb415f36 100644
|
| --- a/services/media/factory_service/factory_service.cc
|
| +++ b/services/media/factory_service/factory_service.cc
|
| @@ -27,41 +27,34 @@ void MediaFactoryService::Initialize(ApplicationImpl* app) {
|
| }
|
|
|
| bool MediaFactoryService::ConfigureIncomingConnection(
|
| - ApplicationConnection* connection) {
|
| + ApplicationConnection* connection) {
|
| connection->AddService<MediaFactory>(this);
|
| return true;
|
| }
|
|
|
| void MediaFactoryService::Create(ApplicationConnection* connection,
|
| - InterfaceRequest<MediaFactory> request) {
|
| + InterfaceRequest<MediaFactory> request) {
|
| bindings_.AddBinding(this, request.Pass());
|
| }
|
|
|
| -void MediaFactoryService::CreatePlayer(
|
| - const String& origin_url,
|
| - InterfaceRequest<MediaPlayer> player) {
|
| +void MediaFactoryService::CreatePlayer(const String& origin_url,
|
| + InterfaceRequest<MediaPlayer> player) {
|
| products_.insert(std::static_pointer_cast<Product>(
|
| MediaPlayerImpl::Create(origin_url, player.Pass(), this)));
|
| }
|
|
|
| -void MediaFactoryService::CreateSource(
|
| - const String& origin_url,
|
| - Array<MediaTypeSetPtr> media_types,
|
| - InterfaceRequest<MediaSource> source) {
|
| +void MediaFactoryService::CreateSource(const String& origin_url,
|
| + Array<MediaTypeSetPtr> media_types,
|
| + InterfaceRequest<MediaSource> source) {
|
| products_.insert(std::static_pointer_cast<Product>(
|
| MediaSourceImpl::Create(origin_url, media_types, source.Pass(), this)));
|
| }
|
|
|
| -void MediaFactoryService::CreateSink(
|
| - const String& destination_url,
|
| - MediaTypePtr media_type,
|
| - InterfaceRequest<MediaSink> sink) {
|
| - products_.insert(std::static_pointer_cast<Product>(
|
| - MediaSinkImpl::Create(
|
| - destination_url,
|
| - media_type.Pass(),
|
| - sink.Pass(),
|
| - this)));
|
| +void MediaFactoryService::CreateSink(const String& destination_url,
|
| + MediaTypePtr media_type,
|
| + InterfaceRequest<MediaSink> sink) {
|
| + products_.insert(std::static_pointer_cast<Product>(MediaSinkImpl::Create(
|
| + destination_url, media_type.Pass(), sink.Pass(), this)));
|
| }
|
|
|
| void MediaFactoryService::CreateDecoder(
|
|
|