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

Unified Diff: net/url_request/url_request_job.cc

Issue 8018: Clean up filter and content encoding handling ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | « net/url_request/url_request_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.cc
===================================================================
--- net/url_request/url_request_job.cc (revision 4002)
+++ net/url_request/url_request_job.cc (working copy)
@@ -47,12 +47,12 @@
}
void URLRequestJob::SetupFilter() {
- std::vector<std::string> encoding_types;
+ std::vector<Filter::FilterType> encoding_types;
if (GetContentEncodings(&encoding_types)) {
- std::string mime_type;
- GetMimeType(&mime_type);
- filter_.reset(Filter::Factory(encoding_types, mime_type, kFilterBufSize));
+ filter_.reset(Filter::Factory(encoding_types, kFilterBufSize));
if (filter_.get()) {
+ std::string mime_type;
+ GetMimeType(&mime_type);
filter_->SetURL(request_->url());
filter_->SetMimeType(mime_type);
}
« no previous file with comments | « net/url_request/url_request_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698