summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/filter.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/base/filter.cc b/net/base/filter.cc
index c435f9b..f6a114a 100644
--- a/net/base/filter.cc
+++ b/net/base/filter.cc
@@ -7,7 +7,10 @@
#include "base/string_util.h"
#include "net/base/gzip_filter.h"
#include "net/base/bzip2_filter.h"
+#if defined(OS_WIN)
+// TODO(port): restore when sdch works on non-Windows.
#include "net/base/sdch_filter.h"
+#endif
namespace {
@@ -82,8 +85,11 @@ Filter* Filter::SingleFilter(const std::string& filter_type,
} else if (LowerCaseEqualsASCII(filter_type, kBZip2) ||
LowerCaseEqualsASCII(filter_type, kXBZip2)) {
type_id = FILTER_TYPE_BZIP2;
+#if defined(OS_WIN)
+ // TODO(port): restore when sdch works on non-Windows.
} else if (LowerCaseEqualsASCII(filter_type, kSdch)) {
type_id = FILTER_TYPE_SDCH;
+#endif
} else {
// Note we also consider "identity" and "uncompressed" UNSUPPORTED as
// filter should be disabled in such cases.
@@ -110,6 +116,8 @@ Filter* Filter::SingleFilter(const std::string& filter_type,
}
break;
}
+#if defined(OS_WIN)
+ // TODO(port): restore when sdch works on non-Windows.
case FILTER_TYPE_SDCH: {
scoped_ptr<SdchFilter> sdch_filter(new SdchFilter());
if (sdch_filter->InitBuffer(buffer_size)) {
@@ -119,6 +127,7 @@ Filter* Filter::SingleFilter(const std::string& filter_type,
}
break;
}
+#endif
default: {
break;
}