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

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

Issue 2534873005: Sandbox the component updater's patcher utility process. (Closed)
Patch Set: Created 4 years, 1 month 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
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..c32fdd820f569f5706a36a260e0a6c75f4e377d5 100644
--- a/courgette/third_party/bsdiff/bsdiff.h
+++ b/courgette/third_party/bsdiff/bsdiff.h
@@ -46,6 +46,10 @@
#include "base/files/file_util.h"
+namespace base {
huangs 2016/12/06 18:23:22 You're not using File pointers, and looks like thi
waffles 2016/12/06 19:18:45 Done.
+class File;
+} // namespace base
+
namespace courgette {
class SourceStream;
class SinkStream;
@@ -81,6 +85,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.
huangs 2016/12/06 18:10:40 Please move this between the Stream version and Fi
waffles 2016/12/06 19:18:45 Done.
+BSDiffStatus ApplyBinaryPatch(base::File old_stream,
+ base::File patch_stream,
+ base::File new_stream);
+
// The following declarations are common to the patch-creation and
// patch-application code.

Powered by Google App Engine
This is Rietveld 408576698