diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 01:37:32 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 01:37:32 +0000 |
commit | 702925415896ab799e7ec55c98806c8bf76eaeab (patch) | |
tree | 648df23b7f3d30a4cd78d52bdb9b00445b6b3bdf /net | |
parent | 6088942a9ddd522ed237b805641138f853fc3a7f (diff) | |
download | chromium_src-702925415896ab799e7ec55c98806c8bf76eaeab.zip chromium_src-702925415896ab799e7ec55c98806c8bf76eaeab.tar.gz chromium_src-702925415896ab799e7ec55c98806c8bf76eaeab.tar.bz2 |
Don't use SDCH until open_vcdiff works on all platforms.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/filter.cc | 9 |
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; } |