Add CefTaskManager::GetTaskIdForBrowserId

Update https://tests/task_manager to show the current browser's
renderer task in bold.


Approved-by: Nik Pavlov
This commit is contained in:
Marshall Greenblatt
2024-07-19 15:19:06 +00:00
parent 3acdbac061
commit 69b884d39c
12 changed files with 122 additions and 11 deletions

View File

@ -95,6 +95,15 @@ class CefTaskManager : public virtual CefBaseRefCounted {
///
/*--cef()--*/
virtual bool KillTask(int64_t task_id) = 0;
///
/// Returns the task ID associated with the main task for |browser_id|
/// (value from CefBrowser::GetIdentifier). Returns -1 if |browser_id| is
/// invalid, does not currently have an associated task, or the method was
/// called from the incorrect thread.
///
/*--cef()--*/
virtual int64_t GetTaskIdForBrowserId(int browser_id) = 0;
};
#endif // CEF_INCLUDE_CEF_TASK_MANAGER_H_