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

Side by Side Diff: third_party/dom_distiller_js/package/proto/dom_distiller.proto

Issue 608583003: Roll dom_distiller_js and add UMA for word count for distilled pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from isherman and rolled dom distiller Created 6 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 package dom_distiller.proto; 7 package dom_distiller.proto;
8 option optimize_for = LITE_RUNTIME; 8 option optimize_for = LITE_RUNTIME;
9 option java_package = "com.dom_distiller.proto"; 9 option java_package = "com.dom_distiller.proto";
10 option java_outer_classname = "DomDistillerProtos"; 10 option java_outer_classname = "DomDistillerProtos";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 optional double document_construction_time = 2; 53 optional double document_construction_time = 2;
54 optional double article_processing_time = 3; 54 optional double article_processing_time = 3;
55 optional double formatting_time = 4; 55 optional double formatting_time = 4;
56 optional double total_time = 5; 56 optional double total_time = 5;
57 } 57 }
58 58
59 message DebugInfo { 59 message DebugInfo {
60 optional string log = 1; 60 optional string log = 1;
61 } 61 }
62 62
63 message StatisticsInfo {
64 optional int32 word_count = 1;
65 }
66
63 message DomDistillerResult { 67 message DomDistillerResult {
64 optional string title = 1; 68 optional string title = 1;
65 optional DistilledContent distilled_content = 2; 69 optional DistilledContent distilled_content = 2;
66 optional PaginationInfo pagination_info = 3; 70 optional PaginationInfo pagination_info = 3;
67 repeated string image_urls = 4; 71 repeated string image_urls = 4;
68 optional MarkupInfo markup_info = 5; 72 optional MarkupInfo markup_info = 5;
69 optional TimingInfo timing_info = 6; 73 optional TimingInfo timing_info = 6;
70 optional DebugInfo debug_info = 7; 74 optional DebugInfo debug_info = 7;
75 optional StatisticsInfo statistics_info = 8;
71 } 76 }
72 77
73 message DomDistillerOptions { 78 message DomDistillerOptions {
74 // Whether to extract only the text (or to include the containing html). 79 // Whether to extract only the text (or to include the containing html).
75 optional bool extract_text_only = 1; 80 optional bool extract_text_only = 1;
76 81
77 // How much debug output to dump to window.console. 82 // How much debug output to dump to window.console.
78 // (0): Logs nothing 83 // (0): Logs nothing
79 // (1): Text Node data for each stage of processing 84 // (1): Text Node data for each stage of processing
80 // (2): (1) and some node visibility information 85 // (2): (1) and some node visibility information
81 // (3): (2) and extracted paging information 86 // (3): (2) and extracted paging information
82 optional int32 debug_level = 2; 87 optional int32 debug_level = 2;
83 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698