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

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

Issue 5382008: Refactor ZLib and Verbatim encoders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | « no previous file | remoting/base/compressor_verbatim.h » ('j') | remoting/base/encoder_row_based.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef REMOTING_BASE_COMPRESSOR_H_ 5 #ifndef REMOTING_BASE_COMPRESSOR_H_
6 #define REMOTING_BASE_COMPRESSOR_H_ 6 #define REMOTING_BASE_COMPRESSOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace remoting { 10 namespace remoting {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Compressed data is written to |output_data|. |consumed| will 42 // Compressed data is written to |output_data|. |consumed| will
43 // contain the number of bytes consumed from the input. |written| 43 // contain the number of bytes consumed from the input. |written|
44 // contains the number of bytes written to output. 44 // contains the number of bytes written to output.
45 // 45 //
46 // Returns true if this method needs to be called again because 46 // Returns true if this method needs to be called again because
47 // there is more data to be written out. This is particularly 47 // there is more data to be written out. This is particularly
48 // useful for end of the compression stream. 48 // useful for end of the compression stream.
49 virtual bool Process(const uint8* input_data, int input_size, 49 virtual bool Process(const uint8* input_data, int input_size,
50 uint8* output_data, int output_size, 50 uint8* output_data, int output_size,
51 CompressorFlush flush, int* consumed, int* written) = 0; 51 CompressorFlush flush, int* consumed, int* written) = 0;
52
53 virtual void Reset() = 0;
Alpha Left Google 2010/12/02 19:39:55 Add comments for this method.
Sergey Ulanov 2010/12/03 00:17:21 Done.
52 }; 54 };
53 55
54 } // namespace remoting 56 } // namespace remoting
55 57
56 #endif // REMOTING_BASE_COMPRESSOR_H_ 58 #endif // REMOTING_BASE_COMPRESSOR_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/compressor_verbatim.h » ('j') | remoting/base/encoder_row_based.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698