• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5syntax = "proto2";
6
7package precache;
8
9// Chrome requires this.
10option optimize_for = LITE_RUNTIME;
11
12// Information about a cacheable resource to be precached.
13message PrecacheResource {
14  // The URL of the resource. This field must always be present.
15  optional string url = 1;
16};
17
18// A manifest of cacheable resources to be precached for a specific starting
19// URL.
20message PrecacheManifest {
21  // List of resources that we predict that the user will need if they are
22  // likely to fetch the starting URL.
23  repeated PrecacheResource resource = 1;
24};
25
26message PrecacheConfigurationSettings {
27  // The maximum rank of the user's most visited URLs to consider precaching
28  // resources for, starting from 1. For example, a value of 10 means that only
29  // URLs that are in the user's top 10 most visited URLs will be considered as
30  // starting URLs for resource precaching. This is specified by the server for
31  // testing purposes, so that it's easy to adjust how aggressively resources
32  // are precached.
33  // Values that are zero or lower indicate that none of the user's top sites
34  // will be used for precaching.
35  optional int64 top_sites_count = 1 [default = 10];
36
37  // List of additional starting URLs that resources will be precached for.
38  // These are URLs that the server predicts that the user will visit, as a
39  // result of server-side analytics.
40  repeated string forced_starting_url = 2;
41};
42