mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
37 lines
947 B
Plaintext
37 lines
947 B
Plaintext
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Secure chrome extension update manifest parser provided by the utility
|
|
// process and exposed by mojo policy to the chrome browser process.
|
|
|
|
module extensions.mojom;
|
|
|
|
import "url/mojo/url.mojom";
|
|
|
|
interface ManifestParser {
|
|
// Parse an extensions update manifest |xml| document and return the
|
|
// |results|, or null if parsing fails.
|
|
Parse(string xml) => (UpdateManifestResults? results);
|
|
};
|
|
|
|
struct UpdateManifestResults {
|
|
array<UpdateManifestResult> list;
|
|
int32 daystart_elapsed_seconds;
|
|
};
|
|
|
|
struct UpdateManifestResult {
|
|
string extension_id;
|
|
string version;
|
|
string browser_min_version;
|
|
|
|
url.mojom.Url crx_url;
|
|
string package_hash;
|
|
int32 size;
|
|
string package_fingerprint;
|
|
|
|
url.mojom.Url diff_crx_url;
|
|
string diff_package_hash;
|
|
int32 diff_size;
|
|
};
|