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

Side by Side Diff: remoting/base/compressor_zlib.h

Issue 11195029: Remove ZLib codec support from chromoting host and client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « remoting/base/compressor_verbatim.cc ('k') | remoting/base/compressor_zlib.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_BASE_COMPRESSOR_ZLIB_H_
6 #define REMOTING_BASE_COMPRESSOR_ZLIB_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "remoting/base/compressor.h"
10
11 typedef struct z_stream_s z_stream;
12
13 namespace remoting {
14
15 // A lossless compressor using zlib.
16 class CompressorZlib : public Compressor {
17 public:
18 CompressorZlib();
19 virtual ~CompressorZlib();
20
21 // Compressor implementations.
22 virtual bool Process(const uint8* input_data,
23 int input_size,
24 uint8* output_data,
25 int output_size,
26 CompressorFlush flush,
27 int* consumed,
28 int* written) OVERRIDE;
29
30 virtual void Reset() OVERRIDE;
31
32 private:
33 scoped_ptr<z_stream> stream_;
34 };
35
36 } // namespace remoting
37
38 #endif // REMOTING_BASE_COMPRESSOR_ZLIB_H_
OLDNEW
« no previous file with comments | « remoting/base/compressor_verbatim.cc ('k') | remoting/base/compressor_zlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698