summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 23:58:51 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 23:58:51 +0000
commite1681f221ed06218232a4252721ffc9f5cc24fa0 (patch)
tree3241a7135c37a7a9e1f5e7168a9ea35e08695cd6 /webkit/support/webkit_support.h
parent6ae762e1b393c8b459cc997f107deb5f38ce6255 (diff)
downloadchromium_src-e1681f221ed06218232a4252721ffc9f5cc24fa0.zip
chromium_src-e1681f221ed06218232a4252721ffc9f5cc24fa0.tar.gz
chromium_src-e1681f221ed06218232a4252721ffc9f5cc24fa0.tar.bz2
Add LocalFileToDataURL to webkit_support.
I'm going to use this to get http/tests/security/local-user-CSS-from-remote.html passing. Instead of trying to load a file:/// URL for the user style sheet, use a data: URL. This matches what happens in Chromium. Review URL: http://codereview.chromium.org/3425004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support.h')
-rw-r--r--webkit/support/webkit_support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
index c8b7978..745b979 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -120,6 +120,9 @@ WebKit::WebURL RewriteLayoutTestsURL(const std::string& utf8_url);
// Set the directory of specified file: URL as the current working directory.
bool SetCurrentDirectoryForFileURL(const WebKit::WebURL& fileUrl);
+// Convert a file:/// URL to a base64 encoded data: URL.
+WebKit::WebURL LocalFileToDataURL(const WebKit::WebURL& fileUrl);
+
// -------- Time
int64 GetCurrentTimeInMillisecond();