![trop[bot]](/assets/img/avatar_default.png)
* chore: remove unused #include <string> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <optional> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <vector> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <string_view> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <memory> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <utility> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <tuple> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <unordered_set> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused #include <functional> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: iwyu <set> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: iwyu <map> Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
48 lines
1.5 KiB
C++
48 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 "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
|