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

Side by Side Diff: courgette/third_party/bsdiff/bsdiff.h

Issue 1961963003: Move //courgette/third_party to subfolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation Created 4 years, 7 months 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 unified diff | Download patch
OLDNEW
1 /*- 1 /*-
2 * Copyright 2003,2004 Colin Percival 2 * Copyright 2003,2004 Colin Percival
3 * All rights reserved 3 * All rights reserved
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted providing that the following conditions 6 * modification, are permitted providing that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // As above, but simply takes the file paths. 72 // As above, but simply takes the file paths.
73 BSDiffStatus ApplyBinaryPatch(const base::FilePath& old_stream, 73 BSDiffStatus ApplyBinaryPatch(const base::FilePath& old_stream,
74 const base::FilePath& patch_stream, 74 const base::FilePath& patch_stream,
75 const base::FilePath& new_stream); 75 const base::FilePath& new_stream);
76 76
77 // The following declarations are common to the patch-creation and 77 // The following declarations are common to the patch-creation and
78 // patch-application code. 78 // patch-application code.
79 79
80 // The patch stream starts with a MBSPatchHeader. 80 // The patch stream starts with a MBSPatchHeader.
81 typedef struct MBSPatchHeader_ { 81 typedef struct MBSPatchHeader_ {
82 char tag[8]; // Contains MBS_PATCH_HEADER_TAG 82 char tag[8]; // Contains MBS_PATCH_HEADER_TAG
huangs 2016/05/10 18:17:02 Please also add '.' at end.
altimin 2016/05/11 17:48:47 Done.
83 uint32_t slen; // Length of the file to be patched. 83 uint32_t slen; // Length of the file to be patched.
84 uint32_t scrc32; // CRC32 of the file to be patched. 84 uint32_t scrc32; // CRC32 of the file to be patched.
85 uint32_t dlen; // Length of the result file. 85 uint32_t dlen; // Length of the result file.
86 } MBSPatchHeader; 86 } MBSPatchHeader;
87 87
88 // This is the value for the tag field. Must match length exactly, not counting 88 // This is the value for the tag field. Must match length exactly, not counting
89 // null at end of string. 89 // null at end of string.
90 #define MBS_PATCH_HEADER_TAG "GBSDIF42" 90 #define MBS_PATCH_HEADER_TAG "GBSDIF42"
91 91
92 } // namespace 92 } // namespace
93 #endif // COURGETTE_BSDIFF_H_ 93 #endif // COURGETTE_BSDIFF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698