| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_FILTER_H_ | 5 #ifndef BIN_FILTER_H_ |
| 6 #define BIN_FILTER_H_ | 6 #define BIN_FILTER_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| 11 #include "zlib/zlib.h" | 11 #include "zlib/zlib.h" |
| 12 | 12 |
| 13 | |
| 14 namespace dart { | 13 namespace dart { |
| 15 namespace bin { | 14 namespace bin { |
| 16 | 15 |
| 17 class Filter { | 16 class Filter { |
| 18 public: | 17 public: |
| 19 virtual ~Filter() {} | 18 virtual ~Filter() {} |
| 20 | 19 |
| 21 virtual bool Init() = 0; | 20 virtual bool Init() = 0; |
| 22 | 21 |
| 23 /** | 22 /** |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 uint8_t* current_buffer_; | 103 uint8_t* current_buffer_; |
| 105 z_stream stream_; | 104 z_stream stream_; |
| 106 | 105 |
| 107 DISALLOW_COPY_AND_ASSIGN(ZLibInflateFilter); | 106 DISALLOW_COPY_AND_ASSIGN(ZLibInflateFilter); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace bin | 109 } // namespace bin |
| 111 } // namespace dart | 110 } // namespace dart |
| 112 | 111 |
| 113 #endif // BIN_FILTER_H_ | 112 #endif // BIN_FILTER_H_ |
| OLD | NEW |