193e162ec6
* chore: bump chromium in DEPS to 124.0.6355.0 * 5341411: view-transition: Ensure resources are cleaned up in all cases. https://chromium-review.googlesource.com/c/chromium/src/+/5341411 * chore: fixup patch indices * 5354013: Return nullopt on error from ProcessMetrics CPU measurements https://chromium-review.googlesource.com/c/chromium/src/+/5354013 * chore: bump chromium in DEPS to 124.0.6357.0 * chore: update patches * 5368769: Reland "[mojo] Use large worker for mojom_parser action" https://chromium-review.googlesource.com/c/chromium/src/+/5368769 * 5336171: [Extensions] Introduce a CoreExtensionsRendererAPIProvider https://chromium-review.googlesource.com/c/chromium/src/+/5336171 * 5367334: [FS Shortcut] Refactor ExclusiveAccessManager https://chromium-review.googlesource.com/c/chromium/src/+/5367334 * 5354161: Rename GeolocationManager to GeolocationSystemPermissionManager https://chromium-review.googlesource.com/c/chromium/src/+/5354161 * fixup: [Extensions] Introduce a CoreExtensionsRendererAPIProvider * chore: bump chromium in DEPS to 124.0.6359.0 * chore: update patches * 5371370: [Extensions] Move core NativeHandler registration https://chromium-review.googlesource.com/c/chromium/src/+/5371370 * 5370702: [Extensions] Introduce ShellExtensionsRendererAPIProvider https://chromium-review.googlesource.com/c/chromium/src/+/5370702 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
41 lines
1.7 KiB
C++
41 lines
1.7 KiB
C++
// Copyright (c) 2017 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_RENDERER_EXTENSIONS_ELECTRON_EXTENSIONS_RENDERER_API_PROVIDER_H_
|
|
#define ELECTRON_SHELL_RENDERER_EXTENSIONS_ELECTRON_EXTENSIONS_RENDERER_API_PROVIDER_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "extensions/renderer/extensions_renderer_api_provider.h"
|
|
|
|
namespace electron {
|
|
|
|
class ElectronExtensionsRendererAPIProvider
|
|
: public extensions::ExtensionsRendererAPIProvider {
|
|
public:
|
|
ElectronExtensionsRendererAPIProvider() = default;
|
|
ElectronExtensionsRendererAPIProvider(
|
|
const ElectronExtensionsRendererAPIProvider&) = delete;
|
|
ElectronExtensionsRendererAPIProvider& operator=(
|
|
const ElectronExtensionsRendererAPIProvider&) = delete;
|
|
~ElectronExtensionsRendererAPIProvider() override = default;
|
|
|
|
// ExtensionsRendererAPIProvider:
|
|
void RegisterNativeHandlers(
|
|
extensions::ModuleSystem* module_system,
|
|
extensions::NativeExtensionBindingsSystem* bindings_system,
|
|
extensions::V8SchemaRegistry* v8_schema_registry,
|
|
extensions::ScriptContext* context) const override;
|
|
void AddBindingsSystemHooks(extensions::Dispatcher* dispatcher,
|
|
extensions::NativeExtensionBindingsSystem*
|
|
bindings_system) const override;
|
|
void PopulateSourceMap(
|
|
extensions::ResourceBundleSourceMap* source_map) const override;
|
|
void EnableCustomElementAllowlist() const override;
|
|
void RequireWebViewModules(extensions::ScriptContext* context) const override;
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_RENDERER_EXTENSIONS_ELECTRON_EXTENSIONS_RENDERER_API_PROVIDER_H_
|