summaryrefslogtreecommitdiff
path: root/Source/WebCore/fileapi/File.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/fileapi/File.h')
-rw-r--r--Source/WebCore/fileapi/File.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/WebCore/fileapi/File.h b/Source/WebCore/fileapi/File.h
index d466adce8..abe5544e3 100644
--- a/Source/WebCore/fileapi/File.h
+++ b/Source/WebCore/fileapi/File.h
@@ -28,7 +28,6 @@
#include "Blob.h"
#include <wtf/PassRefPtr.h>
-#include <wtf/RefCounted.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
@@ -91,7 +90,7 @@ public:
const String& path() const { return m_path; }
const String& name() const { return m_name; }
- // This may return NaN (which is converted to null Date in javascript layer) if getFileModificationTime() platform call has failed or the information is not available.
+ // This returns the current date and time if the file's last modifiecation date is not known (per spec: http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate).
double lastModifiedDate() const;
#if ENABLE(DIRECTORY_UPLOAD)
@@ -136,13 +135,13 @@ private:
inline File* toFile(Blob* blob)
{
- ASSERT(!blob || blob->isFile());
+ ASSERT_WITH_SECURITY_IMPLICATION(!blob || blob->isFile());
return static_cast<File*>(blob);
}
inline const File* toFile(const Blob* blob)
{
- ASSERT(!blob || blob->isFile());
+ ASSERT_WITH_SECURITY_IMPLICATION(!blob || blob->isFile());
return static_cast<const File*>(blob);
}