| Index: java/org/chromium/distiller/MarkupParser.java
|
| diff --git a/java/org/chromium/distiller/MarkupParser.java b/java/org/chromium/distiller/MarkupParser.java
|
| index d85e9a1698e9e3da9f19518dd22ca2ac048f77f0..689acd725f7ca8ef14b044b4632549cb7f0ebaa6 100644
|
| --- a/java/org/chromium/distiller/MarkupParser.java
|
| +++ b/java/org/chromium/distiller/MarkupParser.java
|
| @@ -89,6 +89,11 @@ public class MarkupParser {
|
| * Returns true if page owner has opted out of distillation.
|
| */
|
| public boolean optOut();
|
| +
|
| + /**
|
| + * Returns the markup body of the document, empty string if none.
|
| + */
|
| + public String getStructuredData();
|
| }
|
|
|
| /**
|
| @@ -219,6 +224,14 @@ public class MarkupParser {
|
| return article;
|
| }
|
|
|
| + public String getStructuredData() {
|
| + String content = "";
|
| + for (int i = 0; i < mAccessors.size() && content.isEmpty(); i++) {
|
| + content = mAccessors.get(i).getStructuredData();
|
| + }
|
| + return content;
|
| + }
|
| +
|
| public boolean optOut() {
|
| boolean optOut = false;
|
| for (int i = 0; i < mAccessors.size() && !optOut; i++) {
|
|
|