Home | History | Annotate | Download | only in proto
      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.
      4 //
      5 // Distilled page content.
      6 
      7 syntax = "proto2";
      8 
      9 option optimize_for = LITE_RUNTIME;
     10 
     11 package dom_distiller;
     12 
     13 message DistilledPageProto {
     14   // The URLs used to create this page.
     15   required string url = 1;
     16 
     17   // The distilled HTML.
     18   required string html = 3;
     19 
     20   message Image {
     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;
     24 
     25     // The image data
     26     required bytes data = 2;
     27   }
     28 
     29   // The images referenced in the HTML.
     30   repeated Image image = 4;
     31 
     32   // Title for the current page.
     33   optional string title = 5;
     34 }