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

Unified Diff: third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h

Issue 2690903005: Metadata extraction for Copyless Paste (Closed)
Patch Set: histogram Created 3 years, 10 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
Index: third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h
diff --git a/third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h
new file mode 100644
index 0000000000000000000000000000000000000000..c91e8f2541ae815cf53da2c60a6980f5f9f1a193
--- /dev/null
+++ b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteExtractor.h
@@ -0,0 +1,25 @@
+// 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.
+
+#ifndef CopylessPasteExtractor_h
+#define CopylessPasteExtractor_h
+
+#include "modules/ModulesExport.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class Document;
+
+// Extract structured metadata (currently schema.org in JSON-LD) for the
+// Copyless Paste feature. The extraction must be done after the document
+// has finished parsing.
+class MODULES_EXPORT CopylessPasteExtractor final {
+ public:
+ static String extract(Document&);
+};
+
+} // namespace blink
+
+#endif // CopylessPasteExtractor_h

Powered by Google App Engine
This is Rietveld 408576698