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 |