2019-02-01 17:42:40 +01:00
|
|
|
// Copyright 2018 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 "libcef/common/service_manifests/cef_content_browser_overlay_manifest.h"
|
|
|
|
|
|
|
|
#include "base/command_line.h"
|
|
|
|
#include "base/no_destructor.h"
|
|
|
|
#include "build/build_config.h"
|
2019-10-01 15:55:16 +02:00
|
|
|
#include "components/metrics/public/mojom/call_stack_profile_collector.mojom.h"
|
2019-02-01 17:42:40 +01:00
|
|
|
#include "extensions/buildflags/buildflags.h"
|
2019-02-21 01:42:36 +01:00
|
|
|
#include "extensions/common/api/mime_handler.mojom.h" // nogncheck
|
2019-09-04 17:13:32 +02:00
|
|
|
#include "extensions/common/mojom/keep_alive.mojom.h" // nogncheck
|
2019-02-01 17:42:40 +01:00
|
|
|
#include "services/service_manager/public/cpp/manifest_builder.h"
|
|
|
|
|
|
|
|
#if defined(OS_WIN)
|
|
|
|
#include "chrome/common/conflicts/module_event_sink_win.mojom.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const service_manager::Manifest& GetCefContentBrowserOverlayManifest() {
|
|
|
|
static base::NoDestructor<service_manager::Manifest> manifest {
|
|
|
|
service_manager::ManifestBuilder()
|
|
|
|
.ExposeCapability("gpu",
|
|
|
|
service_manager::Manifest::InterfaceList<
|
|
|
|
metrics::mojom::CallStackProfileCollector>())
|
|
|
|
.ExposeCapability("renderer",
|
|
|
|
service_manager::Manifest::InterfaceList<
|
|
|
|
#if defined(OS_WIN)
|
|
|
|
mojom::ModuleEventSink,
|
|
|
|
#endif
|
|
|
|
metrics::mojom::CallStackProfileCollector>())
|
|
|
|
.RequireCapability("chrome_printing", "converter")
|
|
|
|
.ExposeInterfaceFilterCapability_Deprecated(
|
|
|
|
"navigation:frame", "renderer",
|
|
|
|
service_manager::Manifest::InterfaceList<
|
|
|
|
extensions::KeepAlive,
|
|
|
|
extensions::mime_handler::BeforeUnloadControl,
|
|
|
|
extensions::mime_handler::MimeHandlerService>())
|
|
|
|
.Build()
|
|
|
|
};
|
|
|
|
return *manifest;
|
|
|
|
}
|