#include "wtf/text/CString.h"
#include "wtf/text/TextEncoding.h"
-namespace WebCore {
+namespace blink {
const long long BlobDataItem::toEndOfFile = -1;
void BlobData::detachFromCurrentThread()
{
m_contentType = m_contentType.isolatedCopy();
- m_contentDisposition = m_contentDisposition.isolatedCopy();
for (size_t i = 0; i < m_items.size(); ++i)
m_items.at(i).detachFromCurrentThread();
}
CString utf8Text = UTF8Encoding().normalizeAndEncode(text, WTF::EntitiesForUnencodables);
if (doNormalizeLineEndingsToNative) {
- WebCore::normalizeLineEndingsToNative(utf8Text, *buffer);
+ normalizeLineEndingsToNative(utf8Text, *buffer);
} else {
buffer->append(utf8Text.data(), utf8Text.length());
}
m_items.append(BlobDataItem(data.release()));
}
-void BlobData::appendBytes(const void* bytes, long long length)
+void BlobData::appendBytes(const void* bytes, size_t length)
{
RefPtr<RawData> data = RawData::create();
Vector<char>* buffer = data->mutableData();
BlobRegistry::removeBlobDataRef(m_uuid);
}
-} // namespace WebCore
+} // namespace blink