diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 00:54:05 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 00:54:05 +0000 |
commit | 783a516a3fa720df98d4df5bb4296971cdd9d80b (patch) | |
tree | cd80ceb3317bb5c9a0d62094d46b5fef7255306e /webkit/support/webkit_support.h | |
parent | d8f33a693a3b49024bd0ceaca04a7ada2f15f997 (diff) | |
download | chromium_src-783a516a3fa720df98d4df5bb4296971cdd9d80b.zip chromium_src-783a516a3fa720df98d4df5bb4296971cdd9d80b.tar.gz chromium_src-783a516a3fa720df98d4df5bb4296971cdd9d80b.tar.bz2 |
webkit_support: Prepareation to remove dependencies to base/time.h,
net/base/escape.h, and net/base/net_errors.h from DRT.
Make wrapper functions of features used by DRT.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2873088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support.h')
-rw-r--r-- | webkit/support/webkit_support.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h index d577c09..a762669 100644 --- a/webkit/support/webkit_support.h +++ b/webkit/support/webkit_support.h @@ -23,8 +23,10 @@ class WebPlugin; class WebString; class WebThemeEngine; class WebURL; +class WebURLRequest; class WebURLResponse; struct WebPluginParams; +struct WebURLError; } // This package provides functions used by DumpRenderTree/chromium. @@ -118,6 +120,17 @@ 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); +// -------- Time +int64 GetCurrentTimeInMillisecond(); + +// -------- Net +// A wrapper of net::EscapePath(). +std::string EscapePath(const std::string& path); +// Make an error description for layout tests. +std::string MakeURLErrorDescription(const WebKit::WebURLError& error); +// Creates WebURLError for an aborted request. +WebKit::WebURLError CreateCancelledError(const WebKit::WebURLRequest& request); + // - Database void SetDatabaseQuota(int quota); void ClearAllDatabases(); |