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

Unified Diff: net/base/network_delegate_impl.h

Issue 953633002: Remove net::Filter direct dependency on IsSupportedMimeType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use NetworkDelegate::IsSupportedMimeType in net::Filter::FixupEncodingTypes Created 5 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
« no previous file with comments | « net/base/network_delegate.cc ('k') | net/base/network_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_delegate_impl.h
diff --git a/net/base/network_delegate_impl.h b/net/base/network_delegate_impl.h
index aa87bd46f03445814b6c515e28fc4f7d8f4f5fb0..292e275409b888404ddd3dc07c7db9d362723274 100644
--- a/net/base/network_delegate_impl.h
+++ b/net/base/network_delegate_impl.h
@@ -193,6 +193,12 @@ class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
const URLRequest& request,
const GURL& target_url,
const GURL& referrer_url) const override;
+
+ // If we get a response with GZIP encoding, we check if the response mime
+ // type is one of the supported mime types. If it is supported, we will
+ // decompress response to allow it to be displayed directly in browser,
+ // otherwise we'll leave it compressed.
+ bool OnIsSupportedMimeType(const std::string& mime_type) const override;
};
} // namespace net
« no previous file with comments | « net/base/network_delegate.cc ('k') | net/base/network_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698