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

Side by Side Diff: courgette/simple_delta.cc

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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 unified diff | Download patch
« no previous file with comments | « courgette/rel32_finder_win32_x86_unittest.cc ('k') | courgette/streams.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implementation of the byte-level differential compression used internally by 5 // Implementation of the byte-level differential compression used internally by
6 // Courgette. 6 // Courgette.
7 7
8 #include "courgette/simple_delta.h" 8 #include "courgette/simple_delta.h"
9 9
10 #include "base/basictypes.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 11
13 #include "courgette/third_party/bsdiff.h" 12 #include "courgette/third_party/bsdiff.h"
14 13
15 namespace courgette { 14 namespace courgette {
16 15
17 namespace { 16 namespace {
18 17
19 Status BSDiffStatusToStatus(BSDiffStatus status) { 18 Status BSDiffStatusToStatus(BSDiffStatus status) {
20 switch (status) { 19 switch (status) {
(...skipping 11 matching lines...) Expand all
32 } 31 }
33 32
34 Status GenerateSimpleDelta(SourceStream* old, SourceStream* target, 33 Status GenerateSimpleDelta(SourceStream* old, SourceStream* target,
35 SinkStream* delta) { 34 SinkStream* delta) {
36 VLOG(1) << "GenerateSimpleDelta " << old->Remaining() 35 VLOG(1) << "GenerateSimpleDelta " << old->Remaining()
37 << " " << target->Remaining(); 36 << " " << target->Remaining();
38 return BSDiffStatusToStatus(CreateBinaryPatch(old, target, delta)); 37 return BSDiffStatusToStatus(CreateBinaryPatch(old, target, delta));
39 } 38 }
40 39
41 } // namespace courgette 40 } // namespace courgette
OLDNEW
« no previous file with comments | « courgette/rel32_finder_win32_x86_unittest.cc ('k') | courgette/streams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698