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

Unified Diff: content/shell/browser/shell_network_delegate.cc

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 | « content/shell/browser/shell_network_delegate.h ('k') | net/base/layered_network_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_network_delegate.cc
diff --git a/content/shell/browser/shell_network_delegate.cc b/content/shell/browser/shell_network_delegate.cc
index 633fb46890556de5cbc03d1e53ce2905c0227625..ec642aeaab271f4bdd3a8d9de293245eba5345a2 100644
--- a/content/shell/browser/shell_network_delegate.cc
+++ b/content/shell/browser/shell_network_delegate.cc
@@ -4,6 +4,7 @@
#include "content/shell/browser/shell_network_delegate.h"
+#include "net/base/mime_util.h"
#include "net/base/net_errors.h"
#include "net/base/static_cookie_policy.h"
#include "net/url_request/url_request.h"
@@ -114,4 +115,9 @@ bool ShellNetworkDelegate::OnCanThrottleRequest(
return false;
}
+bool ShellNetworkDelegate::OnIsSupportedMimeType(
+ const std::string& mime_type) const {
+ return net::IsSupportedMimeType(mime_type);
+}
+
} // namespace content
« no previous file with comments | « content/shell/browser/shell_network_delegate.h ('k') | net/base/layered_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698