blob: 50987664e80147c5272c64a786c3fff45de03089 [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 "services/service_manager/public/cpp/manifest_builder.h"
#include "third_party/blink/public/platform/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_browser", "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