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

Unified Diff: public/platform/Platform.h

Issue 16433002: Prepopulate the memoryCache with data:uri images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix LayoutTest crash due to empty data uri Created 7 years, 6 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index acff9862dc1663b4f3cc6a0b73606bc332a52457..32b6da66956ac5bf42a32d226667eddf858231c6 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -287,6 +287,9 @@ public:
// A suggestion to cache this metadata in association with this URL.
virtual void cacheMetadata(const WebURL&, double responseTime, const char* data, size_t dataSize) { }
+ // Returns true if the data url was of a supported mimetype and was parsed successfully.
abarth-chromium 2013/06/05 23:42:51 "Returns true" <--- not accurate anymore
pdr. 2013/06/05 23:53:25 Done.
+ virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
+
// Plugins -------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698