Lines Matching refs:bytes_read
54 virtual void Done(uint32_t bytes_read) OVERRIDE;
55 virtual void DoneWithError(uint32_t bytes_read, int32_t error) OVERRIDE;
174 void DataSinkReceiver::Done(uint32_t bytes_read) {
175 if (!DoneInternal(bytes_read))
177 client()->ReportBytesSent(bytes_read);
181 void DataSinkReceiver::DoneWithError(uint32_t bytes_read, int32_t error) {
182 if (!DoneInternal(bytes_read))
184 ReportBytesSentAndError(bytes_read, error);
187 bool DataSinkReceiver::DoneInternal(uint32_t bytes_read) {
193 MojoResult result = mojo::EndReadDataRaw(handle_.get(), bytes_read);
201 void DataSinkReceiver::ReportBytesSentAndError(uint32_t bytes_read,
210 bytes_read,
265 void DataSinkReceiver::Buffer::Done(uint32_t bytes_read) {
267 receiver_->DoneWithError(bytes_read, cancellation_error_);
269 receiver_->Done(bytes_read);
275 void DataSinkReceiver::Buffer::DoneWithError(uint32_t bytes_read,
277 receiver_->DoneWithError(bytes_read, error);