#include "services/service_manager/background_service_manager.h"
#include "base/check.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_pump_default.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/simple_thread.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/service_manager.h"
namespace service_manager {
BackgroundServiceManager::BackgroundServiceManager(
const std::vector<Manifest>& manifests)
: … { … }
BackgroundServiceManager::~BackgroundServiceManager() { … }
void BackgroundServiceManager::RegisterService(
const Identity& identity,
mojo::PendingRemote<mojom::Service> service,
mojo::PendingReceiver<mojom::ProcessMetadata> metadata_receiver) { … }
void BackgroundServiceManager::InitializeOnBackgroundThread(
const std::vector<Manifest>& manifests) { … }
void BackgroundServiceManager::ShutDownOnBackgroundThread(
base::WaitableEvent* done_event) { … }
void BackgroundServiceManager::RegisterServiceOnBackgroundThread(
const Identity& identity,
mojo::PendingRemote<mojom::Service> service,
mojo::PendingReceiver<mojom::ProcessMetadata> metadata_receiver) { … }
}