2018-09-04 11:43:21 +02: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/browser/extensions/extensions_browser_api_provider.h"
|
2022-01-24 18:58:02 +01:00
|
|
|
#include "libcef/browser/extensions/chrome_api_registration.h"
|
2018-09-04 11:43:21 +02:00
|
|
|
|
2023-01-02 23:59:03 +01:00
|
|
|
// #include "cef/libcef/browser/extensions/api/generated_api_registration.h"
|
2018-09-04 11:43:21 +02:00
|
|
|
#include "extensions/browser/api/generated_api_registration.h"
|
|
|
|
|
|
|
|
namespace extensions {
|
|
|
|
|
2022-01-24 18:58:02 +01:00
|
|
|
CefExtensionsBrowserAPIProvider::CefExtensionsBrowserAPIProvider() = default;
|
|
|
|
CefExtensionsBrowserAPIProvider::~CefExtensionsBrowserAPIProvider() = default;
|
2018-09-04 11:43:21 +02:00
|
|
|
|
|
|
|
void CefExtensionsBrowserAPIProvider::RegisterExtensionFunctions(
|
|
|
|
ExtensionFunctionRegistry* registry) {
|
|
|
|
// CEF-only APIs.
|
|
|
|
// TODO(cef): Enable if/when CEF exposes its own Mojo APIs. See
|
|
|
|
// libcef/common/extensions/api/README.txt for details.
|
|
|
|
// api::cef::CefGeneratedFunctionRegistry::RegisterAll(registry);
|
|
|
|
|
|
|
|
// Chrome APIs whitelisted by CEF.
|
|
|
|
api::cef::ChromeFunctionRegistry::RegisterAll(registry);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace extensions
|