Chromium Code Reviews| Index: components/pdf/common/pdf.mojom |
| diff --git a/components/pdf/common/pdf.mojom b/components/pdf/common/pdf.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f3e4e4b33954db8fe579d9352aec8c1bc047bc0 |
| --- /dev/null |
| +++ b/components/pdf/common/pdf.mojom |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module pdf.mojom; |
| + |
| +import "third_party/WebKit/public/platform/referrer.mojom"; |
| +import "url/mojo/url.mojom"; |
| + |
| +interface PDFService { |
| + // Updates the content restrictions, i.e. to disable print/copy. |
| + UpdateContentRestrictions(int8 restrictions); |
|
Sam McNally
2017/03/23 23:57:00
I think int32 is fine.
|
| + |
| + // The currently displayed PDF has an unsupported feature. |
| + HasUnsupportedFeature(); |
| + |
| + // Brings up SaveAs... dialog to save specified URL. |
| + SaveURLAs(url.mojom.Url url, blink.mojom.Referrer referrer); |
|
Sam McNally
2017/03/23 23:57:00
While you're here, SaveUrlAs and PdfService.
See
benwells
2017/03/29 04:18:03
Done.
|
| +}; |