OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DECOMPRESSOR_VERBATIM_H_ | 5 #ifndef REMOTING_BASE_DECOMPRESSOR_VERBATIM_H_ |
6 #define REMOTING_BASE_DECOMPRESSOR_VERBATIM_H_ | 6 #define REMOTING_BASE_DECOMPRESSOR_VERBATIM_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/compiler_specific.h" |
9 #include "remoting/base/decompressor.h" | 9 #include "remoting/base/decompressor.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 // A lossless decompressor using zlib. | 13 // A lossless decompressor using zlib. |
14 class DecompressorVerbatim : public Decompressor { | 14 class DecompressorVerbatim : public Decompressor { |
15 public: | 15 public: |
16 DecompressorVerbatim(); | 16 DecompressorVerbatim(); |
17 virtual ~DecompressorVerbatim(); | 17 virtual ~DecompressorVerbatim(); |
18 | 18 |
19 virtual void Reset() OVERRIDE; | 19 virtual void Reset() OVERRIDE; |
20 | 20 |
21 // Decompressor implementations. | 21 // Decompressor implementations. |
22 virtual bool Process(const uint8* input_data, int input_size, | 22 virtual bool Process(const uint8* input_data, int input_size, |
23 uint8* output_data, int output_size, | 23 uint8* output_data, int output_size, |
24 int* consumed, int* written) OVERRIDE; | 24 int* consumed, int* written) OVERRIDE; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace remoting | 27 } // namespace remoting |
28 | 28 |
29 #endif // REMOTING_BASE_DECOMPRESSOR_VERBATIM_H_ | 29 #endif // REMOTING_BASE_DECOMPRESSOR_VERBATIM_H_ |
OLD | NEW |