Home | History | Annotate | Download | only in url_request

Lines Matching refs:bytes_read

200     int bytes_read = 0;
201 if (request->Read(buf_, kBufferSize, &bytes_read))
202 OnReadCompleted(request, bytes_read);
208 void TestDelegate::OnReadCompleted(net::URLRequest* request, int bytes_read) {
218 if (bytes_read >= 0) {
220 received_bytes_count_ += bytes_read;
223 data_received_.append(buf_->data(), bytes_read);
227 if (request->status().is_success() && bytes_read > 0) {
228 bytes_read = 0;
229 while (request->Read(buf_, kBufferSize, &bytes_read)) {
230 if (bytes_read > 0) {
231 data_received_.append(buf_->data(), bytes_read);
232 received_bytes_count_ += bytes_read;
281 int bytes_read) {