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 ServiceWorkerCacheStorageIndex {
13 required string name = 1;
15 repeated Cache cache = 1;
16 optional string origin = 2;
19 message ServiceWorkerCacheHeaderMap {
20 required string name = 1;
21 required string value = 2;
24 message ServiceWorkerCacheRequest {
25 required string method = 1;
26 repeated ServiceWorkerCacheHeaderMap headers = 2;
29 message ServiceWorkerCacheResponse {
38 required int32 status_code = 1;
39 required string status_text = 2;
40 required ResponseType response_type = 3;
41 repeated ServiceWorkerCacheHeaderMap headers = 4;
42 optional string url = 5;
45 message ServiceWorkerCacheMetadata {
46 required ServiceWorkerCacheRequest request = 1;
47 required ServiceWorkerCacheResponse response = 2;