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

Unified Diff: runtime/bin/filter.h

Issue 130513003: [ZLIB] Add support for windowBits, memLevel, raw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add support for memLevel Created 6 years, 11 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 | runtime/bin/filter.cc » ('j') | sdk/lib/io/data_transformer.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/filter.h
diff --git a/runtime/bin/filter.h b/runtime/bin/filter.h
index 4c5975952d40aeef17b3521c585ba7936aececb0..7611ead8c22e62021fc1d0bda0e6d9043e2ddc2d 100644
--- a/runtime/bin/filter.h
+++ b/runtime/bin/filter.h
@@ -54,8 +54,11 @@ class Filter {
class ZLibDeflateFilter : public Filter {
public:
- ZLibDeflateFilter(bool gzip = false, int level = 6)
- : gzip_(gzip), level_(level), current_buffer_(NULL) {}
+ ZLibDeflateFilter(bool gzip = false, int level = 6, int windowBits = 15,
Anders Johnsen 2014/01/15 10:52:08 Do the arguments need a default value here (and be
vicb 2014/01/15 11:08:04 Nope, you're right, will update
vicb 2014/01/23 09:14:04 fixed
+ bool raw = false, int memLevel = 8) :
+ gzip_(gzip), level_(level), windowBits_(windowBits), raw_(raw),
+ memLevel_(memLevel), current_buffer_(NULL)
+ {}
virtual ~ZLibDeflateFilter();
virtual bool Init();
@@ -68,6 +71,9 @@ class ZLibDeflateFilter : public Filter {
private:
const bool gzip_;
const int level_;
+ const int windowBits_;
+ const bool raw_;
+ const int memLevel_;
uint8_t* current_buffer_;
z_stream stream_;
@@ -76,7 +82,9 @@ class ZLibDeflateFilter : public Filter {
class ZLibInflateFilter : public Filter {
public:
- ZLibInflateFilter() : current_buffer_(NULL) {}
+ ZLibInflateFilter(int windowBits = 15, bool raw = false) :
Anders Johnsen 2014/01/15 10:52:08 Move : to next line.
vicb 2014/01/23 09:14:04 no more relevant
+ windowBits_(windowBits), raw_(raw), current_buffer_(NULL)
+ {}
virtual ~ZLibInflateFilter();
virtual bool Init();
@@ -87,6 +95,8 @@ class ZLibInflateFilter : public Filter {
bool end);
private:
+ const int windowBits_;
+ const bool raw_;
uint8_t* current_buffer_;
z_stream stream_;
« no previous file with comments | « no previous file | runtime/bin/filter.cc » ('j') | sdk/lib/io/data_transformer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698