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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 40138: Use FilterContext to allow filters to access URLRequestJob data... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
Index: net/url_request/url_request_http_job.cc
===================================================================
--- net/url_request/url_request_http_job.cc (revision 11030)
+++ net/url_request/url_request_http_job.cc (working copy)
@@ -139,7 +139,7 @@
return transaction_.get() ? transaction_->GetUploadProgress() : 0;
}
-bool URLRequestHttpJob::GetMimeType(std::string* mime_type) {
+bool URLRequestHttpJob::GetMimeType(std::string* mime_type) const {
DCHECK(transaction_.get());
if (!response_info_)
@@ -206,6 +206,7 @@
if (!encoding_types->empty()) {
std::string mime_type;
GetMimeType(&mime_type);
+ // TODO(jar): Need to change this call to use the FilterContext interfaces.
Filter::FixupEncodingTypes(IsSdchResponse(), mime_type, encoding_types);
}
return !encoding_types->empty();

Powered by Google App Engine
This is Rietveld 408576698