Index: webkit/glue/webkit_glue.cc |
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc |
index 7eb8cfa111bbe49814c701e9d0165a6fa0972619..5f64176a8701ff6d5af89a1dbb8a0980c7679a1d 100644 |
--- a/webkit/glue/webkit_glue.cc |
+++ b/webkit/glue/webkit_glue.cc |
@@ -39,6 +39,7 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebGlyphCache.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
@@ -349,6 +350,18 @@ WebKit::WebFileError PlatformFileErrorToWebFileError( |
} |
} |
+void PlatformFileInfoToWebFileInfo( |
+ const base::PlatformFileInfo& file_info, |
+ WebKit::WebFileInfo* web_file_info) { |
+ DCHECK(web_file_info); |
+ web_file_info->modificationTime = file_info.last_modified.ToDoubleT(); |
+ web_file_info->length = file_info.size; |
+ if (file_info.is_directory) |
+ web_file_info->type = WebKit::WebFileInfo::TypeDirectory; |
+ else |
+ web_file_info->type = WebKit::WebFileInfo::TypeFile; |
+} |
+ |
namespace { |
class UserAgentState { |