2009-07-02 Victor Wang <victorw@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jul 2009 22:22:43 +0000 (22:22 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jul 2009 22:22:43 +0000 (22:22 +0000)
        Reviewed by Darin Fisher.

        https://bugs.webkit.org/show_bug.cgi?id=26521
        Expose file size to chromium.

        Implement getFileSize() for Chromium.

        * platform/chromium/ChromiumBridge.h:
        * platform/chromium/FileSystemChromium.cpp:
        (WebCore::getFileSize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45494 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/chromium/ChromiumBridge.h
WebCore/platform/chromium/FileSystemChromium.cpp

index 6aed97cb497639fe645b8afc04cbb06667638503..24b16d4b839469e0d9a85e1f4312340ad39fa9ca 100644 (file)
@@ -1,3 +1,16 @@
+2009-07-02  Victor Wang  <victorw@chromium.org>
+
+        Reviewed by Darin Fisher.
+
+        https://bugs.webkit.org/show_bug.cgi?id=26521
+        Expose file size to chromium.
+
+        Implement getFileSize() for Chromium.
+
+        * platform/chromium/ChromiumBridge.h:
+        * platform/chromium/FileSystemChromium.cpp:
+        (WebCore::getFileSize):
+
 2009-07-02  Nate Chapin  <japhet@chromium.org>
 
         Unreviewed, build fix.
index ac036868c8d619bbba3e1b33d90b3f28be4d4d50..b0ab421a7fa6c062b4ed4b5d426ad3fd52736bf3 100644 (file)
@@ -82,6 +82,9 @@ namespace WebCore {
         // DNS ----------------------------------------------------------------
         static void prefetchDNS(const String& hostname);
 
+        // File ---------------------------------------------------------------
+        static bool getFileSize(const String& path, long long& result);
+
         // Font ---------------------------------------------------------------
 #if PLATFORM(WIN_OS)
         static bool ensureFontLoaded(HFONT font);
index afa0c2723acda6bff3b461e1b801bf59d41caf27..0a48852057f366be13713b040edfc5bcf71020d3 100644 (file)
@@ -31,6 +31,7 @@
 #include "config.h"
 #include "FileSystem.h"
 
+#include "ChromiumBridge.h"
 #include "NotImplemented.h"
 #include "PlatformString.h"
 
@@ -48,10 +49,9 @@ bool deleteEmptyDirectory(const String&)
     return false;
 }
 
-bool getFileSize(const String&, long long& result)
+bool getFileSize(const String& path, long long& result)
 {
-    notImplemented();
-    return false;
+    return ChromiumBridge::getFileSize(path, result);
 }
 
 bool getFileModificationTime(const String&, time_t& result)