• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3// found in the LICENSE file.
4
5syntax = "proto2";
6
7package dom_distiller.proto;
8option optimize_for = LITE_RUNTIME;
9option java_package = "com.dom_distiller.proto";
10option java_outer_classname = "DomDistillerProtos";
11
12message DistilledContent {
13  optional string html = 1;
14}
15
16message PaginationInfo {
17  optional string next_page = 1;
18  optional string prev_page = 2;
19  optional string canonical_page = 3;
20}
21
22message DomDistillerResult {
23  optional string title = 1;
24  optional DistilledContent distilled_content = 2;
25  optional PaginationInfo pagination_info = 3;
26  repeated string image_urls = 4;
27}
28
29message DomDistillerOptions {
30  // Whether to extract only the text (or to include the containing html).
31  optional bool extract_text_only = 1;
32
33  // How much debug output to dump to window.console.
34  // (0): Logs nothing
35  // (1): Text Node data for each stage of processing
36  // (2): (1) and some node visibility information
37  // (3): (2) and extracted paging information
38  optional int32 debug_level = 2;
39}
40