1 // Copyright 2014 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.
7 option optimize_for = LITE_RUNTIME;
11 message CacheStorageIndex {
12 message Cache { required string name = 1; }
13 repeated Cache cache = 1;
14 optional string origin = 2;
17 message CacheHeaderMap {
18 required string name = 1;
19 required string value = 2;
22 message CacheRequest {
23 required string method = 1;
24 repeated CacheHeaderMap headers = 2;
27 message CacheResponse {
34 OPAQUE_REDIRECT_TYPE = 5;
37 required int32 status_code = 1;
38 required string status_text = 2;
39 required ResponseType response_type = 3;
40 repeated CacheHeaderMap headers = 4;
41 optional string url = 5;
44 message CacheMetadata {
45 required CacheRequest request = 1;
46 required CacheResponse response = 2;