Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 | |
| 6 // via 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::OK on success. | |
|
tibell
2016/12/22 02:59:38
Nit: perhaps worth saying that |result| is a |bsdi
| |
| 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::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); | |
|
tibell
2016/12/22 02:59:38
Nit: perhaps worth saying that |result| is a |cour
| |
| 28 }; | |
| OLD | NEW |