chore: bump chromium to 128.0.6571.0 (main) (#42749)

* chore: bump chromium in DEPS to 128.0.6571.0

* 5636652: [4/n] Introduce RenderInputRouterClient and move InputRouterClient implementation to RenderInputRouter.

5636652

* 5655811: Revert "Reland "Reland "Add toolchains without PartitionAlloc-Everywhere for dump_syms et al"""

5655811

* 5581006: [tracing] Forward startup tracing config as shmem

5581006

* chore: fixup patch indices

* 5608450: [Views AX] Move Image Auto Captioning strings to ui/

5608450

* 5648900: [Extensions] Move ExtensionAPIEnabledForServiceWorkerScript()

5648900

* 5651681: Remove Web Speech API profanity masking

5651681

* 5651361: `content::RenderFrame::GetBrowserInterfaceBroker`: return a const-ref.

5651361

* 5604943: Start capture of toolbar after gesture end events are received

5604943

* 5624392: [BRP] Enforce raw_ptr/ref in Renderer code

5624392

* 5659259: Portals: Remove WebContentsView::TransferDragSecurityInfo

5659259

* 5230721: Move ComposeStatus to components/compose

5230721

* 5647894: [api] Cleanup usages of v8::ReturnValue<void>::Set[NonEmpty](..)

5647894

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
electron-roller[bot] 2024-07-03 11:15:35 -04:00 committed by GitHub
parent cf5fb4505e
commit 07e6b34a07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 260 additions and 240 deletions

View file

@ -111,7 +111,7 @@ bool SpellCheckWord(content::RenderFrame* render_frame,
RendererClientBase* client = RendererClientBase::Get();
mojo::Remote<spellcheck::mojom::SpellCheckHost> spellcheck_host;
render_frame->GetBrowserInterfaceBroker()->GetInterface(
render_frame->GetBrowserInterfaceBroker().GetInterface(
spellcheck_host.BindNewPipeAndPassReceiver());
if (!spellcheck_host.is_bound())
return false;
@ -248,8 +248,8 @@ class ScriptExecutionCallback {
class FrameSetSpellChecker : public content::RenderFrameVisitor {
public:
FrameSetSpellChecker(SpellCheckClient* spell_check_client,
content::RenderFrame* main_frame)
FrameSetSpellChecker(raw_ptr<SpellCheckClient> spell_check_client,
raw_ptr<content::RenderFrame> main_frame)
: spell_check_client_(spell_check_client), main_frame_(main_frame) {
content::RenderFrame::ForEach(this);
main_frame->GetWebFrame()->SetSpellCheckPanelHostClient(spell_check_client);
@ -268,8 +268,8 @@ class FrameSetSpellChecker : public content::RenderFrameVisitor {
}
private:
SpellCheckClient* spell_check_client_;
content::RenderFrame* main_frame_;
raw_ptr<SpellCheckClient> spell_check_client_;
raw_ptr<content::RenderFrame> main_frame_;
};
class SpellCheckerHolder final : private content::RenderFrameObserver {

View file

@ -64,7 +64,7 @@ class ElectronApiServiceImpl : public mojom::ElectronRenderer,
mojo::PendingReceiver<mojom::ElectronRenderer> pending_receiver_;
mojo::Receiver<mojom::ElectronRenderer> receiver_{this};
RendererClientBase* renderer_client_;
raw_ptr<RendererClientBase> renderer_client_;
base::WeakPtrFactory<ElectronApiServiceImpl> weak_factory_{this};
};

View file

@ -43,8 +43,8 @@ class ElectronRenderFrameObserver : private content::RenderFrameObserver {
const std::string& channel);
bool has_delayed_node_initialization_ = false;
content::RenderFrame* render_frame_;
RendererClientBase* renderer_client_;
raw_ptr<content::RenderFrame> render_frame_;
raw_ptr<RendererClientBase> renderer_client_;
};
} // namespace electron

View file

@ -8,6 +8,7 @@
#include <memory>
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include "ppapi/host/host_factory.h"
namespace content {
@ -34,7 +35,7 @@ class ElectronRendererPepperHostFactory : public ppapi::host::HostFactory {
private:
// Not owned by this object.
content::RendererPpapiHost* host_;
raw_ptr<content::RendererPpapiHost> host_;
};
#endif // ELECTRON_SHELL_RENDERER_ELECTRON_RENDERER_PEPPER_HOST_FACTORY_H_

View file

@ -37,29 +37,6 @@ extensions::Dispatcher* ElectronExtensionsRendererClient::GetDispatcher() {
return dispatcher_.get();
}
bool ElectronExtensionsRendererClient::
ExtensionAPIEnabledForServiceWorkerScript(const GURL& scope,
const GURL& script_url) const {
if (!script_url.SchemeIs(extensions::kExtensionScheme))
return false;
const extensions::Extension* extension =
extensions::RendererExtensionRegistry::Get()->GetExtensionOrAppByURL(
script_url);
if (!extension ||
!extensions::BackgroundInfo::IsServiceWorkerBased(extension))
return false;
if (scope != extension->url())
return false;
const std::string& sw_script =
extensions::BackgroundInfo::GetBackgroundServiceWorkerScript(extension);
return extension->GetResourceURL(sw_script) == script_url;
}
bool ElectronExtensionsRendererClient::AllowPopup() {
// TODO(samuelmaddock):
return false;

View file

@ -36,9 +36,6 @@ class ElectronExtensionsRendererClient
bool IsIncognitoProcess() const override;
int GetLowestIsolatedWorldId() const override;
extensions::Dispatcher* GetDispatcher() override;
bool ExtensionAPIEnabledForServiceWorkerScript(
const GURL& scope,
const GURL& script_url) const override;
bool AllowPopup();