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

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

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Cleanup 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
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 a6b2778010a4b86a5dc178bb2deb1bb235c4ebca..c377742a3f809973361f869b37abb02aa38a085c 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.h
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.h
@@ -33,6 +33,10 @@ PLATFORM_EXPORT PassRefPtr<SharedBuffer> parseDataURL(const KURL&,
AtomicString& mimetype,
AtomicString& charset);
+PLATFORM_EXPORT bool getDataURLMimeType(const KURL&,
+ AtomicString& mimetype,
+ bool* isSupportedMimeType);
+
PLATFORM_EXPORT bool isRedirectResponseCode(int);
} // NetworkUtils

Powered by Google App Engine
This is Rietveld 408576698