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

Unified Diff: remoting/base/compressor.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/compressor_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/compressor.h
diff --git a/remoting/base/compressor.h b/remoting/base/compressor.h
deleted file mode 100644
index 1678255e2ed729e26d77aff1f4c629b59f45e89e..0000000000000000000000000000000000000000
--- a/remoting/base/compressor.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// 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_H_
-#define REMOTING_BASE_COMPRESSOR_H_
-
-#include "base/basictypes.h"
-
-namespace remoting {
-
-// An object to compress data losslessly. Compressed data can be fully
-// recovered by a Decompressor.
-//
-// Note that a Compressor can only be used on one stream during its
-// lifetime. This object should be destroyed after use.
-class Compressor {
- public:
-
- // Defines the flush modes for a compressor.
- enum CompressorFlush {
- CompressorNoFlush,
- CompressorSyncFlush,
- CompressorFinish,
- };
- 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
- // size of |output_data|. |output_size| must be greater than 0.
- //
- // |flush| is set to one of the three value:
- // - CompressorNoFlush
- // No flushing is requested
- // - CompressorSyncFlush
- // Write all pending output and write a synchronization point in the
- // output data stream.
- // - CompressorFinish
- // Mark the end of stream.
- //
- // Compressed data is written to |output_data|. |consumed| will
- // contain the number of bytes consumed from the input. |written|
- // contains the number of bytes written to output.
- //
- // Returns true if this method needs to be called again because
- // there is more data to be written out. This is particularly
- // useful for end of the compression stream.
- virtual bool Process(const uint8* input_data, int input_size,
- uint8* output_data, int output_size,
- CompressorFlush flush, int* consumed, int* written) = 0;
-};
-
-} // namespace remoting
-
-#endif // REMOTING_BASE_COMPRESSOR_H_
« no previous file with comments | « no previous file | remoting/base/compressor_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698