summaryrefslogtreecommitdiffstats
path: root/remoting/base/compressor_verbatim.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 22:46:27 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 22:46:27 +0000
commitb53ab229bdba6cd50585c8fcaad011998b02f82c (patch)
treeef27ab8c08211d13d0ae86d1ec819b0b233b218f /remoting/base/compressor_verbatim.h
parentc0d56a6c6bd730aecaf124d738f266c691a2a6b2 (diff)
downloadchromium_src-b53ab229bdba6cd50585c8fcaad011998b02f82c.zip
chromium_src-b53ab229bdba6cd50585c8fcaad011998b02f82c.tar.gz
chromium_src-b53ab229bdba6cd50585c8fcaad011998b02f82c.tar.bz2
Refactor ZLib and Verbatim encoders.
Added EncoderRowBased that implements encoding for both ZLib and Verbatim. BUG=None TEST=None Review URL: http://codereview.chromium.org/5382008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/compressor_verbatim.h')
-rw-r--r--remoting/base/compressor_verbatim.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/remoting/base/compressor_verbatim.h b/remoting/base/compressor_verbatim.h
new file mode 100644
index 0000000..f7e7224
--- /dev/null
+++ b/remoting/base/compressor_verbatim.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_BASE_COMPRESSOR_VERBATIM_H_
+#define REMOTING_BASE_COMPRESSOR_VERBATIM_H_
+
+#include "remoting/base/compressor.h"
+
+namespace remoting {
+
+// Compressor for verbatim streams.
+class CompressorVerbatim : public Compressor {
+ public:
+ CompressorVerbatim();
+ virtual ~CompressorVerbatim();
+
+ // Compressor implementations.
+ virtual bool Process(const uint8* input_data, int input_size,
+ uint8* output_data, int output_size,
+ CompressorFlush flush, int* consumed, int* written);
+
+ virtual void Reset();
+};
+
+} // namespace remoting
+
+#endif // REMOTING_BASE_COMPRESSOR_VERBATIM_H_