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 // File patching interface provided by the utility process and exposed by |
| 6 // mojo policy control to the chrome browser process. |
| 7 |
| 8 module chrome.mojom; |
| 9 |
| 10 import "mojo/common/file.mojom"; |
| 11 |
| 12 interface FilePatcher { |
| 13 // Patch |input_file| with |patch_file| using the bsdiff algorithm |
| 14 // (Courgette's version) and place the output in |output_file|. |
| 15 // Returns |result| bsdiff::BSDiffStatus::OK on success. |
| 16 PatchFileBsdiff( |
| 17 mojo.common.mojom.File input_file, |
| 18 mojo.common.mojom.File patch_file, |
| 19 mojo.common.mojom.File output_file) => (int32 result); |
| 20 |
| 21 // Patch |input_file| with |patch_file| using the Courgette algorithm |
| 22 // and place the output in |output_file|. |
| 23 // Returns |result| courgette::Status::C_OK on success. |
| 24 PatchFileCourgette( |
| 25 mojo.common.mojom.File input_file, |
| 26 mojo.common.mojom.File patch_file, |
| 27 mojo.common.mojom.File output_file) => (int32 result); |
| 28 }; |
OLD | NEW |