Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5883)

Unified Diff: chrome/common/file_patcher.mojom

Issue 2566053002: Convert utility process out-of-process file patching to mojo (Closed)
Patch Set: Address review comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/file_patcher.mojom
diff --git a/chrome/common/file_patcher.mojom b/chrome/common/file_patcher.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..fb7a19a731a4955d53c0490ae99cc3f808ccd0fa
--- /dev/null
+++ b/chrome/common/file_patcher.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 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.
+
+// File patching interface provided by the utility process and exposed
+// by mojo policy control to the chrome browser process.
+
+module chrome.mojom;
+
+import "mojo/common/file.mojom";
+
+interface FilePatcher {
+ // Patch |input_file| with |patch_file| using the bsdiff algorithm
+ // (Courgette's version) and place the output in |output_file|.
+ // Returns |result| bsdiff::BSDiffStatus::OK on success.
+ PatchFileBsdiff(
+ mojo.common.mojom.File input_file,
+ mojo.common.mojom.File patch_file,
+ mojo.common.mojom.File output_file) => (int32 result);
+
+ // Patch |input_file| with |patch_file| using the Courgette algorithm
+ // and place the output in |output_file|.
+ // Returns |result| courgette::Status::C_OK on success.
+ PatchFileCourgette(
+ mojo.common.mojom.File input_file,
+ mojo.common.mojom.File patch_file,
+ mojo.common.mojom.File output_file) => (int32 result);
+};
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698