OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 // Distilled page content. | 5 // Distilled page content. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package dom_distiller; | 11 package dom_distiller; |
12 | 12 |
13 message DistilledPageProto { | 13 message DistilledPageProto { |
14 // The URLs used to create this page. | 14 // The URLs used to create this page. |
15 required string url = 1; | 15 required string url = 1; |
16 | 16 |
17 // A title for the distilled page. | |
18 optional string title = 2; | |
19 | |
20 // The distilled HTML. | 17 // The distilled HTML. |
21 required string html = 3; | 18 required string html = 3; |
22 | 19 |
23 message Image { | 20 message Image { |
24 // Handle to the image. This could be the URL where the image was found. | 21 // Handle to the image. This could be the URL where the image was found. |
25 // The handle should be referenced verbatim in the HTML. | 22 // The handle should be referenced verbatim in the HTML. |
26 required string name = 1; | 23 required string name = 1; |
27 | 24 |
28 // The image data | 25 // The image data |
29 required bytes data = 2; | 26 required bytes data = 2; |
30 } | 27 } |
31 | 28 |
32 // The images referenced in the HTML. | 29 // The images referenced in the HTML. |
33 repeated Image image = 4; | 30 repeated Image image = 4; |
34 } | 31 } |
OLD | NEW |