cefclient: Add RootWindowManager tracking of other browsers (see #3790)

The message loop should not quit until all browsers have closed,
including browsers that are not directly associated with a RootWindow.
This commit is contained in:
Marshall Greenblatt
2024-11-04 17:12:29 -05:00
parent be11f21131
commit 213c0280e9
5 changed files with 65 additions and 5 deletions

View File

@@ -103,7 +103,13 @@ class BaseClientHandler : public CefClient,
return resource_manager_;
}
void set_track_as_other_browser(bool val) { track_as_other_browser_ = val; }
private:
// True if this handler should call
// RootWindowManager::OtherBrowser[Created|Closed].
bool track_as_other_browser_ = true;
// The current number of browsers using this handler.
int browser_count_ = 0;