Home | History | Annotate | Download | only in url_request

Lines Matching refs:bytes_read

60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) {
65 DCHECK(bytes_read);
69 *bytes_read = 0;
73 rv = ReadRawDataHelper(buf, buf_size, bytes_read);
80 if (ReadFilteredData(bytes_read)) {
86 if (rv && *bytes_read == 0)
291 void URLRequestJob::NotifyReadComplete(int bytes_read) {
302 OnRawReadComplete(bytes_read);
315 prefilter_bytes_read_ += bytes_read;
318 FilteredDataRead(bytes_read);
331 postfilter_bytes_read_ += bytes_read;
334 request_, bytes_read);
336 request_->delegate()->OnReadCompleted(request_, bytes_read);
390 // We signal the error by calling OnReadComplete with a bytes_read of -1.
416 int *bytes_read) {
417 DCHECK(bytes_read);
418 *bytes_read = 0;
423 void URLRequestJob::FilteredDataRead(int bytes_read) {
425 filter_->FlushStreamBuffer(bytes_read);
428 bool URLRequestJob::ReadFilteredData(int* bytes_read) {
436 *bytes_read = 0;
470 return ReadFilteredData(bytes_read);
476 *bytes_read = filtered_data_len;
490 *bytes_read = filtered_data_len;
495 rv = ReadFilteredData(bytes_read);
502 *bytes_read = filtered_data_len;
547 bool URLRequestJob::ReadRawDataForFilter(int* bytes_read) {
550 DCHECK(bytes_read);
553 *bytes_read = 0;
561 rv = ReadRawDataHelper(stream_buffer, stream_buffer_size, bytes_read);
567 int* bytes_read) {
575 bool rv = ReadRawData(buf, buf_size, bytes_read);
581 OnRawReadComplete(*bytes_read);
594 void URLRequestJob::OnRawReadComplete(int bytes_read) {
596 if (bytes_read > 0) {
597 RecordBytesRead(bytes_read);
602 void URLRequestJob::RecordBytesRead(int bytes_read) {
603 filter_input_byte_count_ += bytes_read;
606 bytes_read);