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

Unified Diff: chrome/common/net/url_request_intercept_job.cc

Issue 18390: Change URLRequest to use a ref-counted buffer for actual IO.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/common/net/url_request_intercept_job.h ('k') | net/base/bzip2_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_request_intercept_job.cc
===================================================================
--- chrome/common/net/url_request_intercept_job.cc (revision 8565)
+++ chrome/common/net/url_request_intercept_job.cc (working copy)
@@ -66,7 +66,7 @@
URLRequestJob::Kill();
}
-bool URLRequestInterceptJob::ReadRawData(char* dest, int dest_size,
+bool URLRequestInterceptJob::ReadRawData(net::IOBuffer* dest, int dest_size,
int* bytes_read) {
DCHECK_NE(dest_size, 0);
DCHECK(bytes_read);
@@ -75,7 +75,7 @@
return false;
int rv = plugin_->functions().request_funcs->read(cprequest_.get(),
- dest, dest_size);
+ dest->data(), dest_size);
if (rv >= 0) {
*bytes_read = rv;
return true;
« no previous file with comments | « chrome/common/net/url_request_intercept_job.h ('k') | net/base/bzip2_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698