Remove FormData::alwaysStream()

FormData::alwaysStream() doen't seem to be used anywhere in Blink.

BUG=

Review URL: https://codereview.chromium.org/662383002

git-svn-id: svn://svn.chromium.org/blink/trunk@184912 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4fcbd46c
...@@ -696,8 +696,6 @@ void XMLHttpRequest::send(Document* document, ExceptionState& exceptionState) ...@@ -696,8 +696,6 @@ void XMLHttpRequest::send(Document* document, ExceptionState& exceptionState)
// FIXME: This should use value of document.inputEncoding to determine the encoding to use. // FIXME: This should use value of document.inputEncoding to determine the encoding to use.
httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables)); httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
if (m_upload)
httpBody->setAlwaysStream(true);
} }
createRequest(httpBody.release(), exceptionState); createRequest(httpBody.release(), exceptionState);
...@@ -722,8 +720,6 @@ void XMLHttpRequest::send(const String& body, ExceptionState& exceptionState) ...@@ -722,8 +720,6 @@ void XMLHttpRequest::send(const String& body, ExceptionState& exceptionState)
} }
httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables)); httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
if (m_upload)
httpBody->setAlwaysStream(true);
} }
createRequest(httpBody.release(), exceptionState); createRequest(httpBody.release(), exceptionState);
...@@ -812,8 +808,6 @@ void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionSta ...@@ -812,8 +808,6 @@ void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionSta
if (areMethodAndURLValidForSend()) { if (areMethodAndURLValidForSend()) {
httpBody = FormData::create(data, length); httpBody = FormData::create(data, length);
if (m_upload)
httpBody->setAlwaysStream(true);
} }
createRequest(httpBody.release(), exceptionState); createRequest(httpBody.release(), exceptionState);
......
...@@ -31,7 +31,6 @@ namespace blink { ...@@ -31,7 +31,6 @@ namespace blink {
inline FormData::FormData() inline FormData::FormData()
: m_identifier(0) : m_identifier(0)
, m_alwaysStream(false)
, m_containsPasswordData(false) , m_containsPasswordData(false)
{ {
} }
...@@ -40,7 +39,6 @@ inline FormData::FormData(const FormData& data) ...@@ -40,7 +39,6 @@ inline FormData::FormData(const FormData& data)
: RefCounted<FormData>() : RefCounted<FormData>()
, m_elements(data.m_elements) , m_elements(data.m_elements)
, m_identifier(data.m_identifier) , m_identifier(data.m_identifier)
, m_alwaysStream(false)
, m_containsPasswordData(data.m_containsPasswordData) , m_containsPasswordData(data.m_containsPasswordData)
{ {
} }
...@@ -84,8 +82,6 @@ PassRefPtr<FormData> FormData::deepCopy() const ...@@ -84,8 +82,6 @@ PassRefPtr<FormData> FormData::deepCopy() const
{ {
RefPtr<FormData> formData(create()); RefPtr<FormData> formData(create());
formData->m_alwaysStream = m_alwaysStream;
size_t n = m_elements.size(); size_t n = m_elements.size();
formData->m_elements.reserveInitialCapacity(n); formData->m_elements.reserveInitialCapacity(n);
for (size_t i = 0; i < n; ++i) { for (size_t i = 0; i < n; ++i) {
......
...@@ -112,9 +112,6 @@ public: ...@@ -112,9 +112,6 @@ public:
const Vector<char>& boundary() const { return m_boundary; } const Vector<char>& boundary() const { return m_boundary; }
void setBoundary(Vector<char> boundary) { m_boundary = boundary; } void setBoundary(Vector<char> boundary) { m_boundary = boundary; }
bool alwaysStream() const { return m_alwaysStream; }
void setAlwaysStream(bool alwaysStream) { m_alwaysStream = alwaysStream; }
// Identifies a particular form submission instance. A value of 0 is used // Identifies a particular form submission instance. A value of 0 is used
// to indicate an unspecified identifier. // to indicate an unspecified identifier.
void setIdentifier(int64_t identifier) { m_identifier = identifier; } void setIdentifier(int64_t identifier) { m_identifier = identifier; }
...@@ -142,7 +139,6 @@ private: ...@@ -142,7 +139,6 @@ private:
Vector<FormDataElement> m_elements; Vector<FormDataElement> m_elements;
int64_t m_identifier; int64_t m_identifier;
bool m_alwaysStream;
Vector<char> m_boundary; Vector<char> m_boundary;
bool m_containsPasswordData; bool m_containsPasswordData;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment