4c3014944c
* chore: bump chromium in DEPS to 129.0.6657.0
* chore: update patches
* chore: bump chromium in DEPS to 129.0.6658.0
* chore: update patches
* 5743786: [ServiceWorker] Populate service worker start token to WorkerId.
https://chromium-review.googlesource.com/c/chromium/src/+/5743786
* 5784424: [Extensions] Move ownership of Dispatcher to ExtensionsRendererClient
https://chromium-review.googlesource.com/c/chromium/src/+/5784424
* chore: bump chromium in DEPS to 129.0.6659.0
* chore: bump chromium in DEPS to 129.0.6660.0
* chore: update patches
* chore: bump chromium in DEPS to 129.0.6662.0
* chore: bump chromium in DEPS to 129.0.6664.0
* 5789627: [Partitioned Popins] (3) `popin` feature triggers third-party storage partitioning
https://chromium-review.googlesource.com/c/chromium/src/+/5789627
* 5791367: Remove some chrome:: namespace from chrome/browser/app_mode/*
https://chromium-review.googlesource.com/c/chromium/src/+/5791367
* 5791522: [SCK] Skip redundant getShareableContentWithCompletionHandler
https://chromium-review.googlesource.com/c/chromium/src/+/5791522
* 5761330: Send refresh rate prefs b/w RefreshRateController and DisplayPrivate
https://chromium-review.googlesource.com/c/chromium/src/+/5761330
* chore: fixup patch indices
* 5793591: Remove unused GetHeader overload
https://chromium-review.googlesource.com/c/chromium/src/+/5793591
* 5787624: [Extensions] Simplify ExtensionsRendererClient::RenderThreadStarted()
https://chromium-review.googlesource.com/c/chromium/src/+/5787624
* 5721709: Fix Incorrect last_accessed_time Tracking for Tabs
https://chromium-review.googlesource.com/c/chromium/src/+/5721709
* 5789215: [Extensions] Add a //chrome/common/extensions build target
https://chromium-review.googlesource.com/c/chromium/src/+/5789215
* Roll V8 from 48f669a0758c to eee3eb91d01c
48f669a075..eee3eb91d0
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
// Copyright 2014 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 "shell/renderer/extensions/electron_extensions_renderer_client.h"
|
|
|
|
#include <string>
|
|
|
|
#include "content/public/renderer/render_thread.h"
|
|
#include "extensions/common/constants.h"
|
|
#include "extensions/common/manifest_handlers/background_info.h"
|
|
#include "extensions/renderer/dispatcher.h"
|
|
#include "shell/common/world_ids.h"
|
|
|
|
namespace electron {
|
|
|
|
ElectronExtensionsRendererClient::ElectronExtensionsRendererClient() {}
|
|
|
|
ElectronExtensionsRendererClient::~ElectronExtensionsRendererClient() = default;
|
|
|
|
bool ElectronExtensionsRendererClient::IsIncognitoProcess() const {
|
|
// app_shell doesn't support off-the-record contexts.
|
|
return false;
|
|
}
|
|
|
|
int ElectronExtensionsRendererClient::GetLowestIsolatedWorldId() const {
|
|
return WorldIDs::ISOLATED_WORLD_ID_EXTENSIONS;
|
|
}
|
|
|
|
bool ElectronExtensionsRendererClient::AllowPopup() {
|
|
// TODO(samuelmaddock):
|
|
return false;
|
|
}
|
|
|
|
void ElectronExtensionsRendererClient::RunScriptsAtDocumentStart(
|
|
content::RenderFrame* render_frame) {
|
|
dispatcher()->RunScriptsAtDocumentStart(render_frame);
|
|
}
|
|
|
|
void ElectronExtensionsRendererClient::RunScriptsAtDocumentEnd(
|
|
content::RenderFrame* render_frame) {
|
|
dispatcher()->RunScriptsAtDocumentEnd(render_frame);
|
|
}
|
|
|
|
void ElectronExtensionsRendererClient::RunScriptsAtDocumentIdle(
|
|
content::RenderFrame* render_frame) {
|
|
dispatcher()->RunScriptsAtDocumentIdle(render_frame);
|
|
}
|
|
|
|
} // namespace electron
|