| 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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 repeated CacheHeaderMap headers = 2; | 24 repeated CacheHeaderMap headers = 2; |
| 25 } | 25 } |
| 26 | 26 |
| 27 message CacheResponse { | 27 message CacheResponse { |
| 28 enum ResponseType { | 28 enum ResponseType { |
| 29 BASIC_TYPE = 0; | 29 BASIC_TYPE = 0; |
| 30 CORS_TYPE = 1; | 30 CORS_TYPE = 1; |
| 31 DEFAULT_TYPE = 2; | 31 DEFAULT_TYPE = 2; |
| 32 ERROR_TYPE = 3; | 32 ERROR_TYPE = 3; |
| 33 OPAQUE_TYPE = 4; | 33 OPAQUE_TYPE = 4; |
| 34 OPAQUE_REDIRECT_TYPE = 5; |
| 34 } | 35 } |
| 35 | 36 |
| 36 required int32 status_code = 1; | 37 required int32 status_code = 1; |
| 37 required string status_text = 2; | 38 required string status_text = 2; |
| 38 required ResponseType response_type = 3; | 39 required ResponseType response_type = 3; |
| 39 repeated CacheHeaderMap headers = 4; | 40 repeated CacheHeaderMap headers = 4; |
| 40 optional string url = 5; | 41 optional string url = 5; |
| 41 } | 42 } |
| 42 | 43 |
| 43 message CacheMetadata { | 44 message CacheMetadata { |
| 44 required CacheRequest request = 1; | 45 required CacheRequest request = 1; |
| 45 required CacheResponse response = 2; | 46 required CacheResponse response = 2; |
| 46 } | 47 } |
| OLD | NEW |