Chromium Code Reviews| 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 [DartPackage="mojo_services"] | 5 // These mojom structs are declared only to get generated serialization code |
| 6 // (ie. they are not used for ipc). | |
| 6 module mojo; | 7 module mojo; |
| 7 | 8 |
| 8 struct CacheHeaders { | 9 import "mojo/public/interfaces/network/url_response.mojom"; |
| 9 string name; | 10 |
| 10 string value; | 11 struct CacheKey { |
| 12 string request_origin; | |
| 13 string url; | |
| 14 int64 timestamp; | |
| 11 }; | 15 }; |
| 12 | 16 |
| 13 // One entry in the service cache. | 17 // One entry in the service cache. |
| 14 struct CacheEntry { | 18 struct CacheEntry { |
| 15 uint32 version = 0; | 19 URLResponse response; |
| 16 string url; | 20 string cache_directory; |
|
ppi
2015/09/15 15:21:22
"cache_directory" is very general. If this dir is
qsr
2015/09/16 11:46:38
Done.
| |
| 17 string content_path; | 21 string content_path; |
|
ppi
2015/09/15 15:21:22
wdyt about "response_body_path"?
qsr
2015/09/16 11:46:38
Done.
| |
| 18 array<CacheHeaders>? headers; | |
| 19 }; | 22 }; |
| OLD | NEW |