OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |