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

Side by Side Diff: third_party/zlib/google/compression_utils.cc

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto crrev.com/1564773002 Created 4 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/compression/compression_utils.h" 5 #include "third_party/zlib/google/compression_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/sys_byteorder.h" 14 #include "base/sys_byteorder.h"
15 #include "third_party/zlib/zlib.h" 15 #include "third_party/zlib/zlib.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 &uncompressed_size, 155 &uncompressed_size,
156 bit_cast<const Bytef*>(input.data()), 156 bit_cast<const Bytef*>(input.data()),
157 static_cast<uLongf>(input.length())) == Z_OK) { 157 static_cast<uLongf>(input.length())) == Z_OK) {
158 output->swap(uncompressed_output); 158 output->swap(uncompressed_output);
159 return true; 159 return true;
160 } 160 }
161 return false; 161 return false;
162 } 162 }
163 163
164 } // namespace compression 164 } // namespace compression
OLDNEW
« no previous file with comments | « third_party/zlib/google/compression_utils.h ('k') | third_party/zlib/google/compression_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698