blob: 662e09de5047b53c1d218fd65e7247215d1d5564 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/mojo/services/media_interface_provider.h"
namespace media {
MediaInterfaceProvider::MediaInterfaceProvider(
service_manager::mojom::InterfaceProviderRequest request)
: binding_(this, std::move(request)) {}
MediaInterfaceProvider::~MediaInterfaceProvider() = default;
void MediaInterfaceProvider::GetInterface(
const std::string& interface_name,
mojo::ScopedMessagePipeHandle handle) {
registry_.BindInterface(interface_name, std::move(handle));
}
} // namespace media