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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtils.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded Created 3 years, 8 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: third_party/WebKit/Source/platform/network/NetworkUtils.h
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtils.h b/third_party/WebKit/Source/platform/network/NetworkUtils.h
index 995a99ed6375b1f36347d07dda4a598c9f490767..18a287911327ef0dcea59b15c7b8ca3ca3e033d3 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.h
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.h
@@ -34,6 +34,10 @@ PLATFORM_EXPORT PassRefPtr<SharedBuffer> ParseDataURLAndPopulateResponse(
const KURL&,
ResourceResponse&);
+// Returns true if the URL is a data URL and its MIME type is in the list of
+// supported/recognized MIME types.
+PLATFORM_EXPORT bool IsDataURLMimeTypeSupported(const KURL&);
+
PLATFORM_EXPORT bool IsRedirectResponseCode(int);
} // NetworkUtils

Powered by Google App Engine
This is Rietveld 408576698