blob: 8a6564f7a8a3e6d5106830e8aaf2ae7b7e579189 [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 "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>())
.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>())
.Build()};
return *manifest;
}
} // namespace android_webview