1 // Copyright 2013 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.
5 // Distilled page content.
9 option optimize_for = LITE_RUNTIME;
11 package dom_distiller;
13 message DistilledPageProto {
14 // The URLs used to create this page.
15 required string url = 1;
17 // The distilled HTML.
18 required string html = 3;
21 // Handle to the image. This could be the URL where the image was found.
22 // The handle should be referenced verbatim in the HTML.
23 required string name = 1;
26 required bytes data = 2;
28 // The original url for the image.
29 optional string url = 3;
32 // The images referenced in the HTML.
33 repeated Image image = 4;
35 // Title for the current page.
36 optional string title = 5;
39 // Contains the log from the JS distiller.
40 optional string log = 1;
43 // Debug information about this page.
44 optional DebugInfo debug_info = 6;
46 // text directionality
47 optional string text_direction = 7;
49 message PaginationInfo {
50 optional string next_page = 1;
51 optional string prev_page = 2;
52 optional string canonical_page = 3;
55 // Pagination info for this page.
56 optional PaginationInfo pagination_info = 8;
59 optional string name = 1;
60 optional double time = 2;
63 repeated TimingInfo timing_info = 9;