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

Unified Diff: components/dom_distiller/core/distiller_page.h

Issue 411253008: dom distiller: extract markup properties from protobuf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/core/distiller_page.h
diff --git a/components/dom_distiller/core/distiller_page.h b/components/dom_distiller/core/distiller_page.h
index 4fd15b247f7db426f71cd84b2a53bc643e269a9c..21c037fd507dcf7023148596468d38a0fef96166 100644
--- a/components/dom_distiller/core/distiller_page.h
+++ b/components/dom_distiller/core/distiller_page.h
@@ -18,11 +18,51 @@
namespace dom_distiller {
struct DistilledPageInfo {
+ struct MarkupArticle {
+ std::string published_time;
+ std::string modified_time;
+ std::string expiration_time;
+ std::string section;
+ std::vector<std::string> authors;
+
+ MarkupArticle();
+ ~MarkupArticle();
+ };
+
+ struct MarkupImage {
+ std::string url;
+ std::string secure_url;
+ std::string type;
+ std::string caption;
+ int width;
+ int height;
+
+ MarkupImage();
+ ~MarkupImage();
+ };
+
+ struct MarkupInfo {
+ std::string title;
+ std::string type;
+ std::string url;
+ std::string description;
+ std::string publisher;
+ std::string copyright;
+ std::string author;
+ MarkupArticle article;
+ std::vector<MarkupImage> images;
+
+ MarkupInfo();
+ ~MarkupInfo();
+ };
+
std::string title;
std::string html;
std::string next_page_url;
std::string prev_page_url;
std::vector<std::string> image_urls;
+ MarkupInfo markup_info;
+
DistilledPageInfo();
~DistilledPageInfo();

Powered by Google App Engine
This is Rietveld 408576698