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

Side by Side Diff: src/platform/update_engine/bzip.cc

Issue 891002: AU: Delta Diff Generator (Closed)
Patch Set: fixes for review Created 10 years, 9 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
« no previous file with comments | « no previous file | src/platform/update_engine/delta_diff_generator.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 #include "update_engine/gzip.h" 5 #include "update_engine/bzip.h"
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <algorithm> 7 #include <algorithm>
8 #include <bzlib.h> 8 #include <bzlib.h>
9 #include "update_engine/utils.h" 9 #include "update_engine/utils.h"
10 10
11 using std::max; 11 using std::max;
12 using std::string; 12 using std::string;
13 using std::vector; 13 using std::vector;
14 14
15 namespace chromeos_update_engine { 15 namespace chromeos_update_engine {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 std::vector<char>* out) { 107 std::vector<char>* out) {
108 return BzipString<BzipData<BzipBuffToBuffCompress> >(str, out); 108 return BzipString<BzipData<BzipBuffToBuffCompress> >(str, out);
109 } 109 }
110 110
111 bool BzipDecompressString(const std::string& str, 111 bool BzipDecompressString(const std::string& str,
112 std::vector<char>* out) { 112 std::vector<char>* out) {
113 return BzipString<BzipData<BzipBuffToBuffDecompress> >(str, out); 113 return BzipString<BzipData<BzipBuffToBuffDecompress> >(str, out);
114 } 114 }
115 115
116 } // namespace chromeos_update_engine 116 } // namespace chromeos_update_engine
OLDNEW
« no previous file with comments | « no previous file | src/platform/update_engine/delta_diff_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698