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 {
36 required int32 status_code = 1;
37 required string status_text = 2;
38 required ResponseType response_type = 3;
39 repeated CacheHeaderMap headers = 4;
40 optional string url = 5;
43 message CacheMetadata {
44 required CacheRequest request = 1;
45 required CacheResponse response = 2;