blob: ace5384d201ef794c772034e24c6f13346ff2fa3 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
package precache;
// Chrome requires this.
option optimize_for = LITE_RUNTIME;
// Information about a cacheable resource to be precached.
message PrecacheResource {
// The URL of the resource. This field must always be present.
optional string url = 1;
};
// A manifest of cacheable resources to be precached for a specific starting
// URL.
message PrecacheManifest {
// List of resources that we predict that the user will need if they are
// likely to fetch the starting URL.
repeated PrecacheResource resource = 1;
};
message PrecacheConfigurationSettings {
// The maximum rank of the user's most visited URLs to consider precaching
// resources for, starting from 1. For example, a value of 10 means that only
// URLs that are in the user's top 10 most visited URLs will be considered as
// starting URLs for resource precaching. This is specified by the server for
// testing purposes, so that it's easy to adjust how aggressively resources
// are precached.
// Values that are zero or lower indicate that none of the user's top sites
// will be used for precaching.
optional int64 top_sites_count = 1 [default = 10];
// List of additional starting URLs that resources will be precached for.
// These are URLs that the server predicts that the user will visit, as a
// result of server-side analytics.
repeated string forced_starting_url = 2;
};