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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1700233003: [WIP][SVG 2/4] Make data URL handling in ResourceFetcher and WebURLLoaderImpl consistent Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: auto-Rebase Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 72a3e189e3049825a6a3621c558bfaab13f5455d..b9bd5e3a7d54cd83f0eee34dce93487400f7b1e8 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -52,6 +52,7 @@
#include "WebStorageQuotaType.h"
#include "WebString.h"
#include "WebURLError.h"
+#include "WebURLRequest.h"
#include "WebVector.h"
#include "base/metrics/user_metrics_action.h"
@@ -312,8 +313,9 @@ public:
// A suggestion to cache this metadata in association with this URL.
virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char* data, size_t dataSize) { }
- // Returns the decoded data url if url had a supported mimetype and parsing was successful.
- virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
+ // Returns true if the request can be handled within the renderer process.
+ // |data| is set to non-null if this returns true and parsing is successful.
+ virtual bool parseDataURLIfCanBeHandledLocally(const WebURLRequest&, WebString& mimetype, WebString& charset, WebData& data) { return false; }
virtual WebURLError cancelledError(const WebURL&) const { return WebURLError(); }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698