| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/platform/FileSystem.h" | 32 #include "core/platform/FileSystem.h" |
| 33 | 33 |
| 34 #include "core/platform/FileMetadata.h" | 34 #include "core/platform/FileMetadata.h" |
| 35 #include "core/platform/NotImplemented.h" | 35 #include "core/platform/NotImplemented.h" |
| 36 | 36 |
| 37 #include "public/platform/Platform.h" | 37 #include "public/platform/Platform.h" |
| 38 #include "public/platform/WebFileInfo.h" | 38 #include "public/platform/WebFileInfo.h" |
| 39 #include "public/platform/WebFileUtilities.h" | 39 #include "public/platform/WebFileUtilities.h" |
| 40 #include <wtf/text/WTFString.h> | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 bool deleteFile(const String& path) | 44 bool deleteFile(const String& path) |
| 45 { | 45 { |
| 46 return WebKit::Platform::current()->fileUtilities()->deleteFile(path); | 46 return WebKit::Platform::current()->fileUtilities()->deleteFile(path); |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool deleteEmptyDirectory(const String& path) | 49 bool deleteEmptyDirectory(const String& path) |
| 50 { | 50 { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 { | 124 { |
| 125 return WebKit::Platform::current()->fileUtilities()->readFromFile(handle, da
ta, length); | 125 return WebKit::Platform::current()->fileUtilities()->readFromFile(handle, da
ta, length); |
| 126 } | 126 } |
| 127 | 127 |
| 128 int writeToFile(PlatformFileHandle handle, const char* data, int length) | 128 int writeToFile(PlatformFileHandle handle, const char* data, int length) |
| 129 { | 129 { |
| 130 return WebKit::Platform::current()->fileUtilities()->writeToFile(handle, dat
a, length); | 130 return WebKit::Platform::current()->fileUtilities()->writeToFile(handle, dat
a, length); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace WebCore | 133 } // namespace WebCore |
| OLD | NEW |