Commit d2d85ea7 authored by pilgrim@chromium.org's avatar pilgrim@chromium.org

[Chromium] Move fileExists to Platform.h

https://bugs.webkit.org/show_bug.cgi?id=87531

Reviewed by Adam Barth.

Part of a refactoring series. See tracking bug 82948.

Source/Platform:

* chromium/public/Platform.h:
(WebKit::Platform::fileExists):
(Platform):

Source/WebCore:

* platform/chromium/FileSystemChromium.cpp:
(WebCore::fileExists):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

* src/PlatformSupport.cpp:
(WebCore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 162fff5c
2012-05-29 Mark Pilgrim <pilgrim@chromium.org>
[Chromium] Move fileExists to Platform.h
https://bugs.webkit.org/show_bug.cgi?id=87531
Reviewed by Adam Barth.
Part of a refactoring series. See tracking bug 82948.
* chromium/public/Platform.h:
(WebKit::Platform::fileExists):
(Platform):
2012-05-29 Shawn Singh <shawnsingh@chromium.org>
[chromium] make WebTransformationMatrix object usable by non-webkit code
......
......@@ -106,6 +106,9 @@ public:
// Must return non-null.
virtual WebFileSystem* fileSystem() { return 0; }
virtual bool fileExists(const WebString&) { return false; }
// Gamepad -------------------------------------------------------------
virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
......
2012-05-29 Mark Pilgrim <pilgrim@chromium.org>
[Chromium] Move fileExists to Platform.h
https://bugs.webkit.org/show_bug.cgi?id=87531
Reviewed by Adam Barth.
Part of a refactoring series. See tracking bug 82948.
* platform/chromium/FileSystemChromium.cpp:
(WebCore::fileExists):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):
2012-05-29 Kentaro Hara <haraken@chromium.org>
[V8] Rename v8Null() to v8NullWithCheck()
......
......@@ -36,6 +36,8 @@
#include "PlatformString.h"
#include "PlatformSupport.h"
#include <public/Platform.h>
namespace WebCore {
bool deleteFile(const String& path)
......@@ -88,7 +90,7 @@ bool makeAllDirectories(const String& path)
bool fileExists(const String& path)
{
return PlatformSupport::fileExists(path);
return WebKit::Platform::current()->fileExists(path);
}
PlatformFileHandle openFile(const String& path, FileOpenMode mode)
......
......@@ -123,7 +123,6 @@ public:
static bool cookiesEnabled(const Document*);
// File ---------------------------------------------------------------
static bool fileExists(const String&);
static bool deleteFile(const String&);
static bool deleteEmptyDirectory(const String&);
static bool getFileMetadata(const String&, FileMetadata& result);
......
2012-05-29 Mark Pilgrim <pilgrim@chromium.org>
[Chromium] Move fileExists to Platform.h
https://bugs.webkit.org/show_bug.cgi?id=87531
Reviewed by Adam Barth.
Part of a refactoring series. See tracking bug 82948.
* src/PlatformSupport.cpp:
(WebCore):
2012-05-29 Alec Flett <alecflett@chromium.org>
IndexedDB: Align codes and names for IDB-specific and DOM-specific errors/exceptions
......
......@@ -302,11 +302,6 @@ bool PlatformSupport::cookiesEnabled(const Document* document)
// File ------------------------------------------------------------------------
bool PlatformSupport::fileExists(const String& path)
{
return WebKit::Platform::current()->fileUtilities()->fileExists(path);
}
bool PlatformSupport::deleteFile(const String& path)
{
return WebKit::Platform::current()->fileUtilities()->deleteFile(path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment