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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java

Issue 2777623002: Move json-ld parsing to Blink.
Patch Set: update policy enforcement in blink, clank handling of repeated values Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java b/chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java
index 2ebb35badafdd2e2fb5771ff3f5ea86b60772393..3ded12f4b3445da57c32be4ed1ed69750cd0c1bf 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/historyreport/AppIndexingReporter.java
@@ -19,6 +19,38 @@ public class AppIndexingReporter {
}
/**
+ * Stand-in class for Mojo interface.
+ *
+ * To be removed once service is implemeented.
+ */
+ public static class WebPage {
+ /**
+ * Stand-in class for Mojo interface.
+ *
+ * To be removed once service is implemeented.
+ */
+ public static class Entity {
+ /**
+ * Stand-in class for Mojo interface.
+ *
+ * To be removed once service is implemeented.
+ */
+ public static class Property {
+ public String name;
+
+ public String[] stringValue;
+ public long[] longValue;
+ public Entity[] entityValue;
+ }
+ public String type;
+ public Property[] properties;
+ }
+ public String url;
+ public String title;
+ public Entity[] entities;
+ }
+
+ /**
* Reports provided entity to on-device index.
* Base class does not implement any reporting, and call is a no-op. Child classes should
* implement this functionality.
@@ -28,6 +60,15 @@ public class AppIndexingReporter {
}
/**
+ * Reports provided entity to on-device index.
+ * Base class does not implement any reporting, and call is a no-op. Child classes should
+ * implement this functionality.
+ */
+ public void reportWebPage(WebPage webpage) {
+ // Overriden by private class. Base class does nothing.
+ }
+
+ /**
* Clears history of reported entities.
* Currently, we do not support clearing only a subset of history. Base class does not implement
* any reporting, and call is a no-op. Child classes should implement this functionality.
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698