Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: chrome_frame/urlmon_upload_data_stream.cc

Issue 594036: Support sending a sliced file in chromium.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/translate/page_translator_unittest.cc ('k') | net/base/net_error_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/urlmon_upload_data_stream.cc
===================================================================
--- chrome_frame/urlmon_upload_data_stream.cc (revision 42417)
+++ chrome_frame/urlmon_upload_data_stream.cc (working copy)
@@ -5,10 +5,12 @@
#include "chrome_frame/urlmon_upload_data_stream.h"
#include "net/base/io_buffer.h"
+#include "net/base/net_errors.h"
void UrlmonUploadDataStream::Initialize(net::UploadData* upload_data) {
upload_data_ = upload_data;
- request_body_stream_.reset(new net::UploadDataStream(upload_data));
+ request_body_stream_.reset(net::UploadDataStream::Create(upload_data, NULL));
+ DCHECK(request_body_stream_.get());
}
STDMETHODIMP UrlmonUploadDataStream::Read(void* pv, ULONG cb, ULONG* read) {
@@ -69,7 +71,9 @@
// STREAM_SEEK_SETs to work with a 0 offset, but fail on everything else.
if (origin == STREAM_SEEK_SET && move.QuadPart == 0) {
if (request_body_stream_->position() != 0) {
- request_body_stream_.reset(new net::UploadDataStream(upload_data_));
+ request_body_stream_.reset(
+ net::UploadDataStream::Create(upload_data_, NULL));
+ DCHECK(request_body_stream_.get());
}
if (new_pos) {
new_pos->QuadPart = 0;
« no previous file with comments | « chrome/renderer/translate/page_translator_unittest.cc ('k') | net/base/net_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698