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.
Add Metafile interface to get data as shared memory region
Transferring print job data from the browser process to the Print Backend service is done using a shared memory region to improve performance. Introduce a method to get the print job data from a metafile in this format for the browser (used by PrintJobWorker in https://crrev.com/c/3193950). The Print Backend service will read from this shared region to then submit the job data to the system printing APIs. Included is a query to determine if cross-process Metafile users should make a copy of data from a shared memory region before initializing the metafile. This is related to security concerns for operating directly on data from shared memory (crbug.com/1135729). Callers need not make an extra copy for implementations which automatically make copies of the provided data. Bug: 809738 Change-Id: Iae169dab77ea32053d37327ae064989bf0ae0c25 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3183192 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Alan Screen <awscreen@chromium.org> Cr-Commit-Position: refs/heads/main@{#947585}
- Loading branch information
Alan Screen
authored and
Chromium LUCI CQ
committed
Dec 2, 2021
1 parent
0495be5
commit e35d263
Showing
8 changed files
with
67 additions
and
2 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
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