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

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

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: nasko comments 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 5c8750ab1924f027ffd92d0157ba8adc09381cb7..f509f53d5166c457a4e9614948c3614569a88563 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&);
+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