summaryrefslogtreecommitdiffstats
path: root/chrome_frame/urlmon_url_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/urlmon_url_request.cc')
-rw-r--r--chrome_frame/urlmon_url_request.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index 093b19f..642a438 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -21,31 +21,6 @@
#include "net/http/http_util.h"
#include "net/http/http_response_headers.h"
-namespace {
-
-// Reads data from a stream into a string.
-HRESULT ReadStream(IStream* stream, size_t size, std::string* data) {
- DCHECK(stream);
- DCHECK(data);
-
- DWORD read = 0;
- HRESULT hr = stream->Read(WriteInto(data, size + 1), size, &read);
- DCHECK(hr == S_OK || hr == S_FALSE || hr == E_PENDING);
- if (read) {
- data->erase(read);
- DCHECK_EQ(read, data->length());
- } else {
- data->clear();
- // Return S_FALSE if the underlying stream returned S_OK and zero bytes.
- if (hr == S_OK)
- hr = S_FALSE;
- }
-
- return hr;
-}
-
-} // end namespace
-
UrlmonUrlRequest::UrlmonUrlRequest()
: pending_read_size_(0),
headers_received_(false),