blob: b294139d6e2c334da4b2fc91ab8954f1d014f36e [file] [log] [blame]
// Copyright 2018 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.
#ifndef SERVICES_AUDIO_SERVICE_FACTORY_H_
#define SERVICES_AUDIO_SERVICE_FACTORY_H_
#include <memory>
#include "services/service_manager/public/cpp/binder_registry.h"
namespace service_manager {
class Service;
}
namespace media {
class AudioManager;
} // namespace media
namespace audio {
// Creates an instance of Audio service which will live in the current process
// on top of AudioManager instance belonging to that process. Must be called on
// the device thread of AudioManager.
std::unique_ptr<service_manager::Service> CreateEmbeddedService(
media::AudioManager* audio_manager);
// Creates an instance of Audio service which will live in the current process
// and will create and own an AudioManager instance.
std::unique_ptr<service_manager::Service> CreateStandaloneService(
std::unique_ptr<service_manager::BinderRegistry> registry);
} // namespace audio
#endif // SERVICES_AUDIO_SERVICE_FACTORY_H_