blob: a86c7b245e6d9db21dec4de0578c02a7215148c1 [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 "android_webview/browser/aw_content_browser_overlay_manifest.h"
#include "base/no_destructor.h"
#include "components/autofill/content/common/autofill_driver.mojom.h"
#include "components/safe_browsing/common/safe_browsing.mojom.h"
#include "components/services/heap_profiling/public/mojom/heap_profiling_client.mojom.h"
#include "components/spellcheck/common/spellcheck.mojom.h"
#include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
#include "content/public/common/service_names.mojom.h"
#include "services/service_manager/public/cpp/manifest_builder.h"
#include "third_party/blink/public/mojom/input/input_host.mojom.h"
namespace android_webview {
const service_manager::Manifest& GetAWContentBrowserOverlayManifest() {
static base::NoDestructor<service_manager::Manifest> manifest{
service_manager::ManifestBuilder()
.ExposeCapability("renderer",
service_manager::Manifest::InterfaceList<
safe_browsing::mojom::SafeBrowsing,
spellcheck::mojom::SpellCheckHost>())
.ExposeCapability("profiling_client",
service_manager::Manifest::InterfaceList<
heap_profiling::mojom::ProfilingClient>())
.RequireCapability(content::mojom::kSystemServiceName,
"profiling_client")
.RequireCapability("heap_profiling", "profiling")
.RequireCapability("heap_profiling", "heap_profiler")
.ExposeInterfaceFilterCapability_Deprecated(
"navigation:frame", "renderer",
service_manager::Manifest::InterfaceList<
autofill::mojom::AutofillDriver,
autofill::mojom::PasswordManagerDriver,
blink::mojom::TextSuggestionHost,
web_restrictions::mojom::WebRestrictions>())
.Build()};
return *manifest;
}
} // namespace android_webview