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..0aaed7ba38fed504f27c745a692be8b668e59a85 |
--- /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(int32 restrictions); |
+ |
+ // 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); |
+}; |