Home
last modified time | relevance | path

Searched refs:read_buf_ (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/net/http/
Dhttp_stream_parser.cc186 read_buf_(read_buffer), in HttpStreamParser()
317 if (read_buf_->offset() > 0) { in ReadResponseHeaders()
319 result = read_buf_->offset(); in ReadResponseHeaders()
320 read_buf_->set_offset(0); in ReadResponseHeaders()
551 if (read_buf_->RemainingCapacity() == 0) in DoReadHeaders()
552 read_buf_->SetCapacity(read_buf_->capacity() + kHeaderBufInitialSize); in DoReadHeaders()
556 CHECK(read_buf_->data()); in DoReadHeaders()
559 ->Read(read_buf_.get(), read_buf_->RemainingCapacity(), io_callback_); in DoReadHeaders()
613 if (read_buf_->offset()) { in DoReadBody()
614 int available = read_buf_->offset() - read_buf_unused_offset_; in DoReadBody()
[all …]
Dhttp_basic_state.cc20 : read_buf_(new GrowableIOBuffer()), in HttpBasicState()
34 connection_.get(), request_info, read_buf_.get(), net_log)); in Initialize()
43 return read_buf_; in read_buf()
Dhttp_response_body_drainer.cc25 read_buf_ = new IOBuffer(kDrainBodyBufferSize); in Start()
71 read_buf_.get(), in DoDrainResponseBody()
Dhttp_response_body_drainer.h54 scoped_refptr<IOBuffer> read_buf_; variable
Dhttp_basic_state.h57 scoped_refptr<GrowableIOBuffer> read_buf_;
Dhttp_transaction_test_util.cc189 content_.append(read_buf_->data(), result); in DidRead()
203 read_buf_ = new net::IOBuffer(1024); in Read()
204 int result = trans_->Read(read_buf_.get(), in Read()
/external/chromium_org/net/tools/quic/
Dquic_spdy_client_stream.cc22 read_buf_(new GrowableIOBuffer()), in QuicSpdyClientStream()
53 if (read_buf_->RemainingCapacity() < (int)data_len) { in ProcessData()
54 read_buf_->SetCapacity(read_buf_->capacity() + kHeaderBufInitialSize); in ProcessData()
56 memcpy(read_buf_->data(), data, data_len); in ProcessData()
57 read_buf_->set_offset(read_buf_->offset() + data_len); in ProcessData()
97 size_t read_buf_len = static_cast<size_t>(read_buf_->offset()); in ParseResponseHeaders()
100 char* data = read_buf_->StartOfBuffer(); in ParseResponseHeaders()
101 size_t len = framer.ParseHeaderBlockInBuffer(data, read_buf_->offset(), in ParseResponseHeaders()
Dquic_spdy_server_stream.cc24 read_buf_(new GrowableIOBuffer()), in QuicSpdyServerStream()
37 if (read_buf_->RemainingCapacity() < (int)data_len) { in ProcessData()
38 read_buf_->SetCapacity(read_buf_->capacity() + kHeaderBufInitialSize); in ProcessData()
40 memcpy(read_buf_->data(), data, data_len); in ProcessData()
41 read_buf_->set_offset(read_buf_->offset() + data_len); in ProcessData()
68 size_t read_buf_len = static_cast<size_t>(read_buf_->offset()); in ParseRequestHeaders()
71 char* data = read_buf_->StartOfBuffer(); in ParseRequestHeaders()
72 size_t len = framer.ParseHeaderBlockInBuffer(data, read_buf_->offset(), in ParseRequestHeaders()
Dquic_spdy_server_stream.h58 scoped_refptr<GrowableIOBuffer> read_buf_; variable
Dquic_spdy_client_stream.h75 scoped_refptr<GrowableIOBuffer> read_buf_; variable
/external/chromium_org/net/quic/
Dquic_spdy_server_stream.cc26 read_buf_(new GrowableIOBuffer()), in QuicSpdyServerStream()
28 read_buf_->SetCapacity(kHeaderBufInitialSize); in QuicSpdyServerStream()
42 while (read_buf_->RemainingCapacity() < static_cast<int>(data_len)) { in ProcessData()
43 read_buf_->SetCapacity(read_buf_->capacity() * 2); in ProcessData()
45 memcpy(read_buf_->data(), data, data_len); in ProcessData()
46 read_buf_->set_offset(read_buf_->offset() + data_len); in ProcessData()
84 const char* data = read_buf_->StartOfBuffer(); in ParseRequestHeaders()
85 size_t read_buf_len = static_cast<size_t>(read_buf_->offset()); in ParseRequestHeaders()
Dquic_http_stream.cc40 read_buf_(new GrowableIOBuffer()), in QuicHttpStream()
295 if (read_buf_->RemainingCapacity() < length) { in OnDataReceived()
296 size_t additional_capacity = length - read_buf_->RemainingCapacity(); in OnDataReceived()
299 read_buf_->SetCapacity(read_buf_->capacity() + additional_capacity); in OnDataReceived()
301 memcpy(read_buf_->data(), data, length); in OnDataReceived()
302 read_buf_->set_offset(read_buf_->offset() + length); in OnDataReceived()
514 size_t read_buf_len = static_cast<size_t>(read_buf_->offset()); in ParseResponseHeaders()
517 char* data = read_buf_->StartOfBuffer(); in ParseResponseHeaders()
518 size_t len = framer.ParseHeaderBlockInBuffer(data, read_buf_->offset(), in ParseResponseHeaders()
Dquic_spdy_server_stream.h58 scoped_refptr<GrowableIOBuffer> read_buf_; variable
/external/chromium_org/jingle/glue/
Dfake_ssl_client_socket.cc85 read_buf_(NewDrainableIOBufferWithSize(arraysize(kSslServerHello))) { in FakeSSLClientSocket()
122 DCHECK_EQ(read_buf_->BytesConsumed(), 0); in Connect()
197 DCHECK_EQ(read_buf_->BytesConsumed(), 0); in ProcessConnectDone()
227 DCHECK_EQ(read_buf_->BytesConsumed(), 0); in ProcessSendClientHelloDone()
238 read_buf_.get(), in DoVerifyServerHello()
239 read_buf_->BytesRemaining(), in DoVerifyServerHello()
270 DCHECK_LE(read, static_cast<size_t>(read_buf_->BytesRemaining())); in ProcessVerifyServerHelloDone()
276 read_buf_->BytesRemaining()]; in ProcessVerifyServerHelloDone()
277 if (std::memcmp(expected_data_start, read_buf_->data(), read) != 0) { in ProcessVerifyServerHelloDone()
280 if (read < static_cast<size_t>(read_buf_->BytesRemaining())) { in ProcessVerifyServerHelloDone()
[all …]
Dchrome_async_socket.cc38 read_buf_(new net::IOBufferWithSize(read_buf_size)), in ChromeAsyncSocket()
179 read_buf_.get(), read_buf_->size(), in DoRead()
241 std::memcpy(data, read_buf_->data() + read_start_, *len_read); in Read()
Dchrome_async_socket.h197 scoped_refptr<net::IOBufferWithSize> read_buf_; variable
/external/chromium_org/storage/browser/blob/
Dblob_url_request_job.cc112 DCHECK(!read_buf_.get()); in ReadRawData()
113 read_buf_ = new net::DrainableIOBuffer(dest, dest_size); in ReadRawData()
363 read_buf_->DidConsume(result); in AdvanceBytesRead()
364 DCHECK_GE(read_buf_->BytesRemaining(), 0); in AdvanceBytesRead()
369 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadBytesItem()
371 memcpy(read_buf_->data(), in ReadBytesItem()
381 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadFileItem()
384 read_buf_.get(), in ReadFileItem()
412 if (!read_buf_->BytesRemaining()) { in DidReadFile()
433 int bytes_read = read_buf_->BytesConsumed(); in BytesReadCompleted()
[all …]
/external/chromium_org/ppapi/examples/crxfs/
Dcrxfs.cc55 char read_buf_[kBufSize]; member in MyInstance
102 int32_t rv = file_io_.Read(0, read_buf_, sizeof(read_buf_), in FileIOOpenCallback()
117 content.append(read_buf_, pp_error); in FileIOReadCallback()
/external/chromium_org/net/server/
Dhttp_connection.h118 ReadIOBuffer* read_buf() const { return read_buf_.get(); } in read_buf()
127 const scoped_refptr<ReadIOBuffer> read_buf_; variable
Dhttp_server_unittest.cc472 read_buf_(NULL), in MockStreamSocket()
482 read_buf_ = NULL; in Disconnect()
513 read_buf_ = buf; in Read()
537 if (!read_buf_.get()) { in DidRead()
542 memcpy(read_buf_->data(), data, read_len); in DidRead()
544 read_buf_ = NULL; in DidRead()
553 scoped_refptr<IOBuffer> read_buf_; member in net::__anon8e6254270211::MockStreamSocket
/external/chromium_org/net/socket/
Dsocket_libevent.cc249 read_buf_ = buf; in Read()
425 int rv = DoRead(read_buf_.get(), read_buf_len_); in ReadCompleted()
431 read_buf_ = NULL; in ReadCompleted()
467 read_buf_ = NULL; in StopWatchingAndCleanUp()
Dssl_server_socket_unittest.cc66 DCHECK(!read_buf_.get()); in Read()
71 read_buf_ = buf; in Read()
113 int copied = PropogateData(read_buf_, read_buf_len_); in DoReadCallback()
116 read_buf_ = NULL; in DoReadCallback()
142 scoped_refptr<IOBuffer> read_buf_; member in net::__anone1fe2eb30111::FakeDataChannel
Ddeterministic_socket_data_unittest.cc56 scoped_refptr<IOBuffer> read_buf_; member in net::DeterministicSocketDataTest
71 read_buf_(NULL), in DeterministicSocketDataTest()
132 read_buf_ = new IOBuffer(len); in AssertReadReturns()
133 ASSERT_EQ(rv, sock_->Read(read_buf_.get(), len, read_callback_.callback())); in AssertReadReturns()
138 ASSERT_EQ(std::string(data, len), std::string(read_buf_->data(), len)); in AssertReadBufferEquals()
/external/chromium_org/net/socket_stream/
Dsocket_stream.cc109 read_buf_(NULL), in SocketStream()
403 DCHECK(read_buf_.get()); in DidReceiveData()
410 delegate_->OnReceivedData(this, read_buf_->data(), len); in DidReceiveData()
412 read_buf_ = NULL; in DidReceiveData()
450 } else if (result > 0 && read_buf_.get()) { in OnReadCompleted()
1149 if (!read_buf_.get()) { in DoReadWrite()
1151 read_buf_ = new IOBuffer(kReadBufferSize); in DoReadWrite()
1153 read_buf_.get(), in DoReadWrite()
1174 DCHECK(read_buf_.get()); in DoReadWrite()
/external/chromium_org/net/udp/
Dudp_socket_libevent.cc98 read_buf_ = NULL; in Close()
191 read_buf_ = buf; in RecvFrom()
382 InternalRecvFrom(read_buf_.get(), read_buf_len_, recv_from_address_); in DidCompleteRead()
384 read_buf_ = NULL; in DidCompleteRead()

12