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(); } |