Index: webkit/support/webkit_support.h |
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h |
index 2482c87d240e08a5a36d135ff0810fdd34b453e0..d11f09b2c1c709110b969d70c01bed9716bf3b62 100644 |
--- a/webkit/support/webkit_support.h |
+++ b/webkit/support/webkit_support.h |
@@ -154,6 +154,16 @@ bool SetCurrentDirectoryForFileURL(const WebKit::WebURL& fileUrl); |
// Convert a file:/// URL to a base64 encoded data: URL. |
WebKit::WebURL LocalFileToDataURL(const WebKit::WebURL& fileUrl); |
+// Scoped temporary directories for use by webkit layout tests. |
+class ScopedTempDirectory { |
+ public: |
+ virtual ~ScopedTempDirectory() {} |
+ virtual bool CreateUniqueTempDir() = 0; |
+ virtual std::string path() const = 0; |
+}; |
+ |
+ScopedTempDirectory* CreateScopedTempDirectory(); |
+ |
// -------- Time |
int64 GetCurrentTimeInMillisecond(); |