OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package content; | 9 package content; |
10 | 10 |
11 message CacheStorageIndex { | 11 message CacheStorageIndex { |
12 message Cache { | 12 message Cache { |
13 required string name = 1; | 13 required string name = 1; |
14 optional string cache_dir = 2; | 14 optional string cache_dir = 2; |
| 15 // To support UTF-16 properly, we use bytes type. See crbug.com/432746. |
| 16 optional bytes name_utf16 = 3; |
15 } | 17 } |
16 repeated Cache cache = 1; | 18 repeated Cache cache = 1; |
17 optional string origin = 2; | 19 optional string origin = 2; |
18 } | 20 } |
19 | 21 |
20 message CacheHeaderMap { | 22 message CacheHeaderMap { |
21 required string name = 1; | 23 required string name = 1; |
22 required string value = 2; | 24 required string value = 2; |
23 } | 25 } |
24 | 26 |
(...skipping 17 matching lines...) Expand all Loading... |
42 required ResponseType response_type = 3; | 44 required ResponseType response_type = 3; |
43 repeated CacheHeaderMap headers = 4; | 45 repeated CacheHeaderMap headers = 4; |
44 optional string url = 5; | 46 optional string url = 5; |
45 optional int64 response_time = 6; | 47 optional int64 response_time = 6; |
46 } | 48 } |
47 | 49 |
48 message CacheMetadata { | 50 message CacheMetadata { |
49 required CacheRequest request = 1; | 51 required CacheRequest request = 1; |
50 required CacheResponse response = 2; | 52 required CacheResponse response = 2; |
51 } | 53 } |
OLD | NEW |