forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ContentCapture: Add OnscreenContentProvider
This patch is 3rd patch of the refactoring, it has below changes - ContentCaptureConsumer became a interface, it stops to handle the WebContents change. - Rename ContentCaptureConsumerImpl to PlatformContentCaptureConsumer. - Rename ContentCaptureReceiverManager to OnscreenContentProvider. - OnscreenContentProvider adds PlatformContentCaptureConsumer and ExperimentContentCaptureConsumer as needed, so each embedder's interaction to ContentCapture becomes simple. - The onscreen content streaming won't start if there is no consumer. - OnscreenContentProvider handles the WebContents change, it creates native ContentCaptureReceiverManagerAndroid as needed and switches to current WebContents by removing/adding itself as consumer. - ContentCaptureReceiverManagerAndroid as a native consumer is owned by OnscreenContentProvider, it forwards the contentcapture events to OnscreenContentProvider and does the actual consumer switch. It will be renamed to OnscreenContentProviderAndroid in next patch. No new test, all cases shall already be covered by existing tests. Bug: 1191672, 1119663 Change-Id: I83533884f1bd4527c71a2dd612a709429c729ee5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2794728 Reviewed-by: Xianzhu Wang <[email protected]> Reviewed-by: Colin Blundell <[email protected]> Reviewed-by: David Trainor <[email protected]> Reviewed-by: Michael Bai <[email protected]> Commit-Queue: Michael Bai <[email protected]> Cr-Commit-Position: refs/heads/master@{#868120}
- Loading branch information
Michael Bai
authored and
Chromium LUCI CQ
committed
Mar 31, 2021
1 parent
5f67138
commit 89355e6
Showing
15 changed files
with
263 additions
and
216 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
Oops, something went wrong.