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

Unified Diff: Source/core/platform/FileSystem.h

Issue 22645008: Add WebKitUnitTestSupport::readFromFile and deprecate all PlatformFileHandle related methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Source/core/platform/chromium/FileSystemChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/FileSystem.h
diff --git a/Source/core/platform/FileSystem.h b/Source/core/platform/FileSystem.h
index 9af0ecaa68fa7d4155f959c5f6fd9bef1996aa3f..0d96833fa8dcbec52c64bc7913638eebc35d7f7f 100644
--- a/Source/core/platform/FileSystem.h
+++ b/Source/core/platform/FileSystem.h
@@ -38,18 +38,6 @@
namespace WebCore {
-#if OS(WINDOWS)
-typedef void *HANDLE;
-typedef HANDLE PlatformFileHandle;
-#else
-typedef int PlatformFileHandle;
-#endif
-
-enum FileOpenMode {
- OpenForRead = 0,
- OpenForWrite
-};
-
struct FileMetadata;
bool getFileSize(const String&, long long& result);
@@ -60,12 +48,6 @@ String directoryName(const String&);
inline double invalidFileTime() { return std::numeric_limits<double>::quiet_NaN(); }
inline bool isValidFileTime(double time) { return std::isfinite(time); }
-// FIXME: Only used by test code, move them into WebUnitTestSupport.
-PlatformFileHandle openFile(const String& path, FileOpenMode);
-void closeFile(PlatformFileHandle&);
-// Returns number of bytes actually written if successful, -1 otherwise.
-int readFromFile(PlatformFileHandle, char* data, int length);
-
} // namespace WebCore
#endif // FileSystem_h
« no previous file with comments | « no previous file | Source/core/platform/chromium/FileSystemChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698