blob: 203c415e6b2e1c921cb9cc7fc8d4e599596a3674 [file] [log] [blame]
// Copyright 2019 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 "components/nacl/broker/nacl_broker_manifest.h"
#include <set>
#include "base/no_destructor.h"
#include "components/nacl/common/nacl_constants.h"
#include "services/service_manager/public/cpp/manifest_builder.h"
const service_manager::Manifest& GetNaClBrokerManifest() {
static base::NoDestructor<service_manager::Manifest> manifest{
service_manager::ManifestBuilder()
.WithServiceName(nacl::kNaClBrokerServiceName)
.WithDisplayName("NaCl broker")
.WithOptions(service_manager::ManifestOptionsBuilder().Build())
// NOTE: The interfaces below are not implemented in the nacl_loader
// service, but they are requested from all child processes by common
// browser-side code. We list them here to make the Service Manager
// happy.
.ExposeCapability("browser",
std::set<const char*>{
"IPC.mojom.ChannelBootstrap",
"content.mojom.Child",
"content.mojom.ChildControl",
"content.mojom.ChildHistogramFetcherFactory",
})
.Build()};
return *manifest;
}