| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 optional string type = 2; | 41 optional string type = 2; |
| 42 optional string url = 3; | 42 optional string url = 3; |
| 43 optional string description = 4; | 43 optional string description = 4; |
| 44 optional string publisher = 5; | 44 optional string publisher = 5; |
| 45 optional string copyright = 6; | 45 optional string copyright = 6; |
| 46 optional string author = 7; | 46 optional string author = 7; |
| 47 optional MarkupArticle article = 8; | 47 optional MarkupArticle article = 8; |
| 48 repeated MarkupImage images = 9; | 48 repeated MarkupImage images = 9; |
| 49 } | 49 } |
| 50 | 50 |
| 51 message TimingInfo { |
| 52 optional double markup_parsing_time = 1; |
| 53 optional double document_construction_time = 2; |
| 54 optional double article_processing_time = 3; |
| 55 optional double formatting_time = 4; |
| 56 optional double total_time = 5; |
| 57 } |
| 58 |
| 59 message DebugInfo { |
| 60 optional string log = 1; |
| 61 } |
| 62 |
| 51 message DomDistillerResult { | 63 message DomDistillerResult { |
| 52 optional string title = 1; | 64 optional string title = 1; |
| 53 optional DistilledContent distilled_content = 2; | 65 optional DistilledContent distilled_content = 2; |
| 54 optional PaginationInfo pagination_info = 3; | 66 optional PaginationInfo pagination_info = 3; |
| 55 repeated string image_urls = 4; | 67 repeated string image_urls = 4; |
| 56 optional MarkupInfo markup_info = 5; | 68 optional MarkupInfo markup_info = 5; |
| 69 optional TimingInfo timing_info = 6; |
| 70 optional DebugInfo debug_info = 7; |
| 57 } | 71 } |
| 58 | 72 |
| 59 message DomDistillerOptions { | 73 message DomDistillerOptions { |
| 60 // Whether to extract only the text (or to include the containing html). | 74 // Whether to extract only the text (or to include the containing html). |
| 61 optional bool extract_text_only = 1; | 75 optional bool extract_text_only = 1; |
| 62 | 76 |
| 63 // How much debug output to dump to window.console. | 77 // How much debug output to dump to window.console. |
| 64 // (0): Logs nothing | 78 // (0): Logs nothing |
| 65 // (1): Text Node data for each stage of processing | 79 // (1): Text Node data for each stage of processing |
| 66 // (2): (1) and some node visibility information | 80 // (2): (1) and some node visibility information |
| 67 // (3): (2) and extracted paging information | 81 // (3): (2) and extracted paging information |
| 68 optional int32 debug_level = 2; | 82 optional int32 debug_level = 2; |
| 69 } | 83 } |
| OLD | NEW |