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

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

Issue 2766583002: Set the same headers for data URLs in WebURLLoaderImpl and ResourceFetcher (Closed)
Patch Set: reflect comments 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..5c8750ab1924f027ffd92d0157ba8adc09381cb7 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.h
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.h
@@ -12,6 +12,7 @@ namespace blink {
class KURL;
class SharedBuffer;
+class ResourceResponse;
namespace NetworkUtils {
@@ -27,11 +28,11 @@ PLATFORM_EXPORT bool isLocalHostname(const String& host, bool* isLocal6);
PLATFORM_EXPORT String getDomainAndRegistry(const String& host,
PrivateRegistryFilter);
-// Returns the decoded data url if url had a supported mimetype and parsing was
-// successful.
-PLATFORM_EXPORT PassRefPtr<SharedBuffer> parseDataURL(const KURL&,
- AtomicString& mimetype,
- AtomicString& charset);
+// Returns the decoded data url as ResourceResponse and SharedBuffer
+// if url had a supported mimetype and parsing was successful.
+PLATFORM_EXPORT PassRefPtr<SharedBuffer> parseDataURLAndPopulateResponse(
+ const KURL&,
+ ResourceResponse&);
PLATFORM_EXPORT bool isRedirectResponseCode(int);
« no previous file with comments | « third_party/WebKit/Source/platform/network/DEPS ('k') | third_party/WebKit/Source/platform/network/NetworkUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698