diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-01-16 22:43:07 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-02-01 10:53:04 +0100 |
commit | a6fb2c592bac997baf87016e9dd6b7a3c061ef3c (patch) | |
tree | ee41adcddb4868053830840826fa62abb6411330 /src/core/web_contents_adapter_client.h | |
parent | 3d22e15a3f1a54427b870e4df97e3898fe8c8339 (diff) |
Add getter/signal to get the render process PID
This can useful for e.g. implementing something like the "Task manager" in
Chromium or otherwise interacting with the render process (e.g. to kill it for
some reason while debugging).
[ChangeLog] Add a renderProcessPid() getter to (Q)WebEnginePage which allows
getting the process ID of the underlying render process.
Change-Id: Id5d59be9b6bd46ffc3a6aa480cb5ff7bd3b8aa31
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter_client.h')
-rw-r--r-- | src/core/web_contents_adapter_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter_client.h b/src/core/web_contents_adapter_client.h index e2f667358..3a75185f8 100644 --- a/src/core/web_contents_adapter_client.h +++ b/src/core/web_contents_adapter_client.h @@ -458,6 +458,7 @@ public: virtual void didUpdateTargetURL(const QUrl&) = 0; virtual void selectionChanged() = 0; virtual void recentlyAudibleChanged(bool recentlyAudible) = 0; + virtual void renderProcessPidChanged(qint64 pid) = 0; virtual QRectF viewportRect() const = 0; virtual QColor backgroundColor() const = 0; virtual void loadStarted(const QUrl &provisionalUrl, bool isErrorPage = false) = 0; |