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

Unified Diff: courgette/third_party/bsdiff/bsdiff.h

Issue 2534873005: Sandbox the component updater's patcher utility process. (Closed)
Patch Set: Through #14 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 | « courgette/ensemble_apply.cc ('k') | courgette/third_party/bsdiff/bsdiff_apply.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/third_party/bsdiff/bsdiff.h
diff --git a/courgette/third_party/bsdiff/bsdiff.h b/courgette/third_party/bsdiff/bsdiff.h
index a5da4ec9dd130d267868af0d546f1ed5426f73ca..4914053e80d28fa9c7d03f929a5cbd5971bd66c6 100644
--- a/courgette/third_party/bsdiff/bsdiff.h
+++ b/courgette/third_party/bsdiff/bsdiff.h
@@ -44,6 +44,7 @@
#include <stdint.h>
+#include "base/files/file.h"
#include "base/files/file_util.h"
namespace courgette {
@@ -81,6 +82,11 @@ BSDiffStatus ApplyBinaryPatch(const base::FilePath& old_stream,
const base::FilePath& patch_stream,
const base::FilePath& new_stream);
+// As above, but simply takes base::Files.
+BSDiffStatus ApplyBinaryPatch(base::File old_stream,
huangs 2016/12/06 19:40:07 Order not changed?
waffles 2016/12/06 19:46:22 Sorry, I really thought I did that... Done now.
+ base::File patch_stream,
+ base::File new_stream);
+
// The following declarations are common to the patch-creation and
// patch-application code.
« no previous file with comments | « courgette/ensemble_apply.cc ('k') | courgette/third_party/bsdiff/bsdiff_apply.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698