0

[unseasoned-pdf] Implement PdfViewWebPlugin::SetContentRestrictions().

`OutOfProcessInstance` calls pp::PDF::SetContentRestrictions() to
trigger pdf.mojom.PdfService.UpdateContentRestrictions from
PepperPDFHost.

Since PdfViewWebPlugin::GetPdfService() already provides the remote to
the PDFService receiver, PdfViewWebPlugin::SetContentRestrictions() can
trigger pdf.mojom.PdfService::UpdateContentRestrictions() directly
without the Pepper layer.

Bug: 1218534
Change-Id: I19b5906f9342d416e581ced609c65dfbbf3aea0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2953076
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Hui Yingst <nigi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#891825}
This commit is contained in:
Hui Yingst
2021-06-11 22:39:28 +00:00
committed by Chromium LUCI CQ
parent fda03ab6f0
commit 3e2b50582f

@ -593,7 +593,7 @@ void PdfViewWebPlugin::SetAccessibilityViewportInfo(
}
void PdfViewWebPlugin::SetContentRestrictions(int content_restrictions) {
NOTIMPLEMENTED();
GetPdfService()->UpdateContentRestrictions(content_restrictions);
}
void PdfViewWebPlugin::SetPluginCanSave(bool can_save) {