| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // These mojom structs are declared only to get generated serialization code | 5 // These mojom structs are declared only to get generated serialization code |
| 6 // (ie. they are not used for ipc). | 6 // (ie. they are not used for ipc). |
| 7 module mojo; | 7 module mojo; |
| 8 | 8 |
| 9 import "mojo/public/interfaces/network/url_response.mojom"; | 9 import "mojo/public/interfaces/network/url_response.mojom"; |
| 10 | 10 |
| 11 struct CacheKey { | 11 struct CacheKey { |
| 12 string request_origin; | 12 string request_origin; |
| 13 string url; | 13 string url; |
| 14 int64 timestamp; | 14 int64 timestamp; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 // One entry in the service cache. | 17 // One entry in the service cache. |
| 18 struct CacheEntry { | 18 struct CacheEntry { |
| 19 URLResponse response; | 19 URLResponse response; |
| 20 string entry_directory; | 20 string entry_directory; |
| 21 string response_body_path; | 21 string response_body_path; |
| 22 int64 last_invalidation; |
| 22 }; | 23 }; |
| OLD | NEW |