refactor: process event emitting for sandboxed renderers (#37109)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
6e0d63c356
commit
446c7809cc
3 changed files with 47 additions and 65 deletions
|
@ -45,6 +45,9 @@ class ElectronSandboxedRendererClient : public RendererClientBase {
|
|||
void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override;
|
||||
|
||||
private:
|
||||
void EmitProcessEvent(content::RenderFrame* render_frame,
|
||||
const char* event_name);
|
||||
|
||||
std::unique_ptr<base::ProcessMetrics> metrics_;
|
||||
|
||||
// Getting main script context from web frame would lazily initializes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue