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

Unified Diff: net/base/filter.cc

Issue 4096: Use open-vcdiff for sdch compression on the Mac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « build/all.xcodeproj/project.pbxproj ('k') | net/base/sdch_filter_unitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/filter.cc
===================================================================
--- net/base/filter.cc (revision 2604)
+++ net/base/filter.cc (working copy)
@@ -7,8 +7,8 @@
#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.
+#if defined(OS_WIN) || defined(OS_MACOSX)
+// TODO(port): remove #ifdef when sdch works on all platforms.
#include "net/base/sdch_filter.h"
#endif
@@ -85,8 +85,8 @@
} 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.
+#if defined(OS_WIN) || defined(OS_MACOSX)
+ // TODO(port): remove #ifdef when sdch works on all platforms.
} else if (LowerCaseEqualsASCII(filter_type, kSdch)) {
type_id = FILTER_TYPE_SDCH;
#endif
@@ -116,8 +116,8 @@
}
break;
}
-#if defined(OS_WIN)
- // TODO(port): restore when sdch works on non-Windows.
+#if defined(OS_WIN) || defined(OS_MACOSX)
+ // TODO(port): remove #ifdef when sdch works on all platforms.
case FILTER_TYPE_SDCH: {
scoped_ptr<SdchFilter> sdch_filter(new SdchFilter());
if (sdch_filter->InitBuffer(buffer_size)) {
« no previous file with comments | « build/all.xcodeproj/project.pbxproj ('k') | net/base/sdch_filter_unitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698