Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: java/org/chromium/distiller/OpenGraphProtocolParserAccessor.java

Issue 1705123002: Add support for Schema.org/Recipe Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: wychen's comments addressed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 package org.chromium.distiller; 1 package org.chromium.distiller;
2 2
3 import com.google.gwt.dom.client.Element; 3 import com.google.gwt.dom.client.Element;
4 import org.chromium.distiller.proto.DomDistillerProtos; 4 import org.chromium.distiller.proto.DomDistillerProtos;
5 5
6 public class OpenGraphProtocolParserAccessor implements MarkupParser.Accessor { 6 public class OpenGraphProtocolParserAccessor implements MarkupParser.Accessor {
7 7
8 private final Element mRoot; 8 private final Element mRoot;
9 private final DomDistillerProtos.TimingInfo mTimingInfo; 9 private final DomDistillerProtos.TimingInfo mTimingInfo;
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return null; 144 return null;
145 } 145 }
146 146
147 @Override 147 @Override
148 public boolean optOut() { 148 public boolean optOut() {
149 // While this is not directly supported, the page owner can 149 // While this is not directly supported, the page owner can
150 // simply omit the required tags and init() will return 150 // simply omit the required tags and init() will return
151 // a null OpenGraphProtocolParser. 151 // a null OpenGraphProtocolParser.
152 return false; 152 return false;
153 } 153 }
154
155 @Override
156 public String getStructuredData() {
157 return "";
158 }
154 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698