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

Unified Diff: webkit/support/webkit_support.h

Issue 7034047: Exporting ScopedTempDir so it can be used by webkit layout tests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix for win build and chrome refactoring Created 9 years, 7 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
« no previous file with comments | « no previous file | webkit/support/webkit_support.cc » ('j') | webkit/support/webkit_support.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | webkit/support/webkit_support.cc » ('j') | webkit/support/webkit_support.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698