| Index: Source/WebCore/platform/network/chromium/ResourceHandle.cpp
|
| diff --git a/Source/WebCore/platform/network/chromium/ResourceHandle.cpp b/Source/WebCore/platform/network/chromium/ResourceHandle.cpp
|
| index 54175ef216086b78905b6a56f4874d017cb3f4f1..fd94e0daf57d4ddacda2f05c12a258a2b06d1b77 100644
|
| --- a/Source/WebCore/platform/network/chromium/ResourceHandle.cpp
|
| +++ b/Source/WebCore/platform/network/chromium/ResourceHandle.cpp
|
| @@ -281,4 +281,20 @@ void ResourceHandle::cacheMetadata(const ResourceResponse& response, const Vecto
|
| WebKit::Platform::current()->cacheMetadata(response.url(), response.responseTime(), data.data(), data.size());
|
| }
|
|
|
| +bool ResourceHandle::parseDataUrl(const KURL& url, String& mimetypeOut, String& charsetOut, Vector<char>& dataOut)
|
| +{
|
| + WebData mimetype, charset;
|
| + WebVector<char> data;
|
| + if (WebKit::Platform::current()->parseDataUrl(url, mimetype, charset, data)) {
|
| + mimetypeOut = String(mimetype.data(), mimetype.size());
|
| + charsetOut = String(charset.data(), charset.size());
|
| + // FIXME
|
| + dataOut = Vector<char>(data.size());
|
| + for (size_t i=0; i<data.size(); i++)
|
| + dataOut[i] = data[i];
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|