summaryrefslogtreecommitdiffstats
path: root/remoting/base/compressor.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.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.h')
-rw-r--r--remoting/base/compressor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/base/compressor.h b/remoting/base/compressor.h
index edb64f8..1678255 100644
--- a/remoting/base/compressor.h
+++ b/remoting/base/compressor.h
@@ -25,6 +25,10 @@ class Compressor {
};
virtual ~Compressor() {}
+ // Resets all the internal state so the compressor behaves as if it
+ // was just created.
+ virtual void Reset() = 0;
+
// Compress |input_data| with |input_size| bytes.
//
// |output_data| is provided by the caller and |output_size| is the