OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 // Secure chrome extension update manifest parser provided by the utility |
| 6 // process and exposed by mojo policy to the chrome browser process. |
| 7 |
| 8 module extensions.mojom; |
| 9 |
| 10 import "url/mojo/url.mojom"; |
| 11 |
| 12 interface ManifestParser { |
| 13 // Parse an extensions update manifest |xml| document and return the |
| 14 // |results|, or null if parsing fails. |
| 15 Parse(string xml) => (UpdateManifestResults? results); |
| 16 }; |
| 17 |
| 18 struct UpdateManifestResults { |
| 19 array<UpdateManifestResult> list; |
| 20 int32 daystart_elapsed_seconds; |
| 21 }; |
| 22 |
| 23 struct UpdateManifestResult { |
| 24 string extension_id; |
| 25 string version; |
| 26 string browser_min_version; |
| 27 |
| 28 url.mojom.Url crx_url; |
| 29 string package_hash; |
| 30 int32 size; |
| 31 string package_fingerprint; |
| 32 |
| 33 url.mojom.Url diff_crx_url; |
| 34 string diff_package_hash; |
| 35 int32 diff_size; |
| 36 }; |
OLD | NEW |