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

Unified Diff: net/base/filter.cc

Issue 466038: Remove bzip2 decoding support completely. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « net/base/filter.h ('k') | net/base/filter_unittest.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 33986)
+++ net/base/filter.cc (working copy)
@@ -7,7 +7,6 @@
#include "base/file_path.h"
#include "base/string_util.h"
#include "net/base/gzip_filter.h"
-#include "net/base/bzip2_filter.h"
#include "net/base/io_buffer.h"
#include "net/base/mime_util.h"
#include "net/base/sdch_filter.h"
@@ -18,8 +17,6 @@
const char kDeflate[] = "deflate";
const char kGZip[] = "gzip";
const char kXGZip[] = "x-gzip";
-const char kBZip2[] = "bzip2";
-const char kXBZip2[] = "x-bzip2";
const char kSdch[] = "sdch";
// compress and x-compress are currently not supported. If we decide to support
// them, we'll need the same mime type compatibility hack we have for gzip. For
@@ -65,9 +62,6 @@
} else if (LowerCaseEqualsASCII(filter_type, kGZip) ||
LowerCaseEqualsASCII(filter_type, kXGZip)) {
type_id = FILTER_TYPE_GZIP;
- } else if (LowerCaseEqualsASCII(filter_type, kBZip2) ||
- LowerCaseEqualsASCII(filter_type, kXBZip2)) {
- type_id = FILTER_TYPE_BZIP2;
} else if (LowerCaseEqualsASCII(filter_type, kSdch)) {
type_id = FILTER_TYPE_SDCH;
} else {
@@ -252,15 +246,6 @@
}
break;
}
- case FILTER_TYPE_BZIP2: {
- scoped_ptr<BZip2Filter> bzip2_filter(new BZip2Filter(filter_context));
- if (bzip2_filter->InitBuffer()) {
- if (bzip2_filter->InitDecoding(false)) {
- first_filter = bzip2_filter.release();
- }
- }
- break;
- }
case FILTER_TYPE_SDCH:
case FILTER_TYPE_SDCH_POSSIBLE: {
scoped_ptr<SdchFilter> sdch_filter(new SdchFilter(filter_context));
« no previous file with comments | « net/base/filter.h ('k') | net/base/filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698