summaryrefslogtreecommitdiffstats
path: root/WebKit/chromium/src/WebHTTPBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/chromium/src/WebHTTPBody.cpp')
-rw-r--r--WebKit/chromium/src/WebHTTPBody.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/WebKit/chromium/src/WebHTTPBody.cpp b/WebKit/chromium/src/WebHTTPBody.cpp
index 335ed5c..3d40869 100644
--- a/WebKit/chromium/src/WebHTTPBody.cpp
+++ b/WebKit/chromium/src/WebHTTPBody.cpp
@@ -32,6 +32,7 @@
#include "WebHTTPBody.h"
#include "FormData.h"
+#include "WebFileInfo.h"
using namespace WebCore;
@@ -78,11 +79,17 @@ bool WebHTTPBody::elementAt(size_t index, Element& result) const
result.type = Element::TypeData;
result.data.assign(element.m_data.data(), element.m_data.size());
result.filePath.reset();
+ result.fileStart = 0;
+ result.fileLength = 0;
+ result.fileInfo.modificationTime = 0.0;
break;
case FormDataElement::encodedFile:
result.type = Element::TypeFile;
result.data.reset();
result.filePath = element.m_filename;
+ result.fileStart = 0; // FIXME: to be set from FormData.
+ result.fileLength = -1; // FIXME: to be set from FormData.
+ result.fileInfo.modificationTime = 0.0; // FIXME: to be set from FormData.
break;
default:
ASSERT_NOT_REACHED();
@@ -106,6 +113,11 @@ void WebHTTPBody::appendFile(const WebString& filePath)
m_private->appendFile(filePath);
}
+void WebHTTPBody::appendFile(const WebString& filePath, long long fileStart, long long fileLength, const WebFileInfo& fileInfo)
+{
+ // FIXME: to be implemented.
+}
+
long long WebHTTPBody::identifier() const
{
ASSERT(!isNull());