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

Unified Diff: content/browser/renderer_host/x509_user_cert_resource_handler.cc

Issue 10578055: Rewrite guts of ResourceLoader and BufferedResourceHandler to suck less. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « content/browser/renderer_host/x509_user_cert_resource_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/x509_user_cert_resource_handler.cc
===================================================================
--- content/browser/renderer_host/x509_user_cert_resource_handler.cc (revision 144275)
+++ content/browser/renderer_host/x509_user_cert_resource_handler.cc (working copy)
@@ -77,21 +77,21 @@
}
bool X509UserCertResourceHandler::OnReadCompleted(int request_id,
- int* bytes_read,
+ int bytes_read,
bool* defer) {
- if (!*bytes_read)
+ if (!bytes_read)
return true;
// We have more data to read.
DCHECK(read_buffer_);
- content_length_ += *bytes_read;
+ content_length_ += bytes_read;
// Release the ownership of the buffer, and store a reference
// to it. A new one will be allocated in OnWillRead().
net::IOBuffer* buffer = NULL;
read_buffer_.swap(&buffer);
// TODO(gauravsh): Should this be handled by a separate thread?
- buffer_.push_back(std::make_pair(buffer, *bytes_read));
+ buffer_.push_back(std::make_pair(buffer, bytes_read));
return true;
}
« no previous file with comments | « content/browser/renderer_host/x509_user_cert_resource_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698