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

Unified Diff: net/filter/filter_source_stream.h

Issue 2753453003: Reject unadvertised encodings (Closed)
Patch Set: Reject unadvertised encodings. Created 3 years, 9 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 | « no previous file | net/filter/filter_source_stream.cc » ('j') | net/http/http_network_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/filter_source_stream.h
diff --git a/net/filter/filter_source_stream.h b/net/filter/filter_source_stream.h
index 3d24bd1a92116f0079702c16436a2ed334753ce0..c4ae8f00a407f707c28f3f6706d953d4a9a82d47 100644
--- a/net/filter/filter_source_stream.h
+++ b/net/filter/filter_source_stream.h
@@ -38,6 +38,10 @@ class NET_EXPORT_PRIVATE FilterSourceStream : public SourceStream {
std::string Description() const override;
+ static SourceType ParseEncodingType(const std::string& encoding);
+
+ static void ReportContentDecodingRejected(SourceType type);
+
private:
enum State {
STATE_NONE,
« no previous file with comments | « no previous file | net/filter/filter_source_stream.cc » ('j') | net/http/http_network_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698