forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[freezing] Track Hid and Serial port connections in Performance Manager.
This is needed to implement a freezing opt-out as described at go/tab-freezing-on-energy-saver-prd. Implementation details: - WebContentsObserver::OnIsConnectedToUsbDeviceChanged() and WebContentsObserver::OnIsConnectedToBluetoothDeviceChanged() are replaced with WebContentsObserver::OnDeviceConnectionTypesChanged(), which is invoked when the connection types used by a WebContents change (USB, Bluetooth, HID and serial). This avoids an explosion of the number of observer methods as more device connection types need to be tracked by performance policies. - Hid Device and Serial Port usage are tracked in PageLiveStateDecorator, alongside USB Device and Bluetooth device usage. - In a separate CL, we'll use the new properties as Page Freezing opt-outs. Bug: 325954772 Change-Id: I5d9df041f7cb45309f3eb69cb9b6ad59f35d64b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5847688 Reviewed-by: Matt Reynolds <[email protected]> Reviewed-by: Patrick Monette <[email protected]> Commit-Queue: Francois Pierre Doray <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Cr-Commit-Position: refs/heads/main@{#1356468}
- Loading branch information
Showing
15 changed files
with
388 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.