/external/chromium_org/net/dns/ |
dns_query_unittest.cc | 9 #include "net/base/io_buffer.h" 44 ASSERT_EQ(static_cast<int>(sizeof(query_data)), q1.io_buffer()->size()); 45 EXPECT_EQ(0, memcmp(q1.io_buffer()->data(), query_data, sizeof(query_data))); 62 EXPECT_EQ(q1.io_buffer()->size(), q2->io_buffer()->size());
|
dns_query.h | 39 IOBufferWithSize* io_buffer() const { return io_buffer_.get(); } function in class:net::DnsQuery
|
dns_query.cc | 12 #include "net/base/io_buffer.h" 75 io_buffer_ = new IOBufferWithSize(orig.io_buffer()->size()); 76 memcpy(io_buffer_.get()->data(), orig.io_buffer()->data(),
|
dns_response.h | 81 // and resource records. After reading into |io_buffer| must call InitParse to 115 IOBufferWithSize* io_buffer() { return io_buffer_.get(); } function in class:net::DnsResponse
|
dns_test_util.cc | 15 #include "net/base/io_buffer.h" 99 char* buffer = response.io_buffer()->data(); 100 int nbytes = query.io_buffer()->size(); 101 memcpy(buffer, query.io_buffer()->data(), nbytes);
|
dns_transaction.cc | 27 #include "net/base/io_buffer.h" 221 return socket()->Write(query_->io_buffer(), 222 query_->io_buffer()->size(), 233 if (rv != query_->io_buffer()->size()) 243 return socket()->Read(response_->io_buffer(), 244 response_->io_buffer()->size(), 391 WriteBigEndian<uint16>(length_buffer_->data(), query_->io_buffer()->size()); 411 buffer_ = new DrainableIOBuffer(query_->io_buffer(), 412 query_->io_buffer()->size()); 451 if (response_length_ < query_->io_buffer()->size() [all...] |
dns_response_unittest.cc | 9 #include "net/base/io_buffer.h" 208 memcpy(resp.io_buffer()->data(), response_data, sizeof(response_data)); 211 EXPECT_FALSE(resp.InitParse(query->io_buffer()->size() - 1, *query)); 250 memcpy(resp.io_buffer()->data(), kT0ResponseDatagram, 301 memcpy(resp.io_buffer()->data(), response_data, sizeof(response_data)); 359 memcpy(resp.io_buffer()->data(), response_data, sizeof(response_data)); 390 memcpy(resp.io_buffer()->data(), response_data, sizeof(response_data));
|
dns_transaction_unittest.cc | 47 *length = base::HostToNet16(query_->io_buffer()->size()); 54 query_->io_buffer()->data(), 55 query_->io_buffer()->size())); 74 response->io_buffer()->data(), 75 response->io_buffer()->size())); 81 uint16 tcp_length = response->io_buffer()->size(); 95 new DnsResponse(query_->io_buffer()->data(), 96 query_->io_buffer()->size(), 99 reinterpret_cast<dns_protocol::Header*>(response->io_buffer()->data()); [all...] |
/external/chromium_org/chrome/browser/extensions/api/socket/ |
socket.h | 17 #include "net/base/io_buffer.h" 30 typedef base::Callback<void(int, scoped_refptr<net::IOBuffer> io_buffer)> 33 void(int, scoped_refptr<net::IOBuffer> io_buffer, const std::string&, int)> 61 void Write(scoped_refptr<net::IOBuffer> io_buffer, 67 virtual void SendTo(scoped_refptr<net::IOBuffer> io_buffer, 100 virtual int WriteImpl(net::IOBuffer* io_buffer, 115 WriteRequest(scoped_refptr<net::IOBuffer> io_buffer, 119 scoped_refptr<net::IOBuffer> io_buffer; member in struct:extensions::Socket::WriteRequest
|
udp_socket.cc | 93 scoped_refptr<net::IOBuffer> io_buffer; local 105 io_buffer = new net::IOBuffer(count); 106 result = socket_.Read(io_buffer.get(), count, 108 io_buffer)); 112 OnReadComplete(io_buffer, result); 115 int UDPSocket::WriteImpl(net::IOBuffer* io_buffer, 121 return socket_.Write(io_buffer, io_buffer_size, callback); 136 scoped_refptr<net::IOBuffer> io_buffer; local 149 io_buffer = new net::IOBuffer(count); 152 io_buffer.get() [all...] |
socket.cc | 11 #include "net/base/io_buffer.h" 39 void Socket::Write(scoped_refptr<net::IOBuffer> io_buffer, 43 write_queue_.push(WriteRequest(io_buffer, byte_count, callback)); 56 request.io_buffer->data() + request.bytes_written); 144 Socket::WriteRequest::WriteRequest(scoped_refptr<net::IOBuffer> io_buffer, 147 : io_buffer(io_buffer),
|
udp_socket.h | 30 virtual void SendTo(scoped_refptr<net::IOBuffer> io_buffer, 53 virtual int WriteImpl(net::IOBuffer* io_buffer, 61 void OnReadComplete(scoped_refptr<net::IOBuffer> io_buffer, 63 void OnRecvFromComplete(scoped_refptr<net::IOBuffer> io_buffer,
|
tcp_socket.cc | 158 scoped_refptr<net::IOBuffer> io_buffer = new net::IOBuffer(count); local 159 int result = socket_->Read(io_buffer.get(), count, 161 io_buffer)); 164 OnReadComplete(io_buffer, result); 172 void TCPSocket::SendTo(scoped_refptr<net::IOBuffer> io_buffer, 264 int TCPSocket::WriteImpl(net::IOBuffer* io_buffer, 272 return socket_->Write(io_buffer, io_buffer_size, callback); 291 void TCPSocket::OnReadComplete(scoped_refptr<net::IOBuffer> io_buffer, 294 read_callback_.Run(result, io_buffer);
|
tcp_socket_unittest.cc | 10 #include "net/base/io_buffer.h" 62 scoped_refptr<net::IOBuffer> io_buffer)); 104 scoped_refptr<net::IOBufferWithSize> io_buffer( 106 socket->Write(io_buffer.get(), io_buffer->size(), 123 scoped_refptr<net::IOBufferWithSize> io_buffer(new net::IOBufferWithSize(42)); 124 socket->Write(io_buffer.get(), io_buffer->size(),
|
tcp_socket.h | 41 virtual void SendTo(scoped_refptr<net::IOBuffer> io_buffer, 67 virtual int WriteImpl(net::IOBuffer* io_buffer, 74 void OnReadComplete(scoped_refptr<net::IOBuffer> io_buffer,
|
udp_socket_unittest.cc | 13 #include "net/base/io_buffer.h" 28 scoped_refptr<net::IOBuffer> io_buffer, 104 scoped_refptr<net::IOBuffer> io_buffer) { 106 EXPECT_EQ(0, strncmp(io_buffer->data(), test_message, test_message_length));
|
/external/chromium_org/chrome/browser/extensions/api/cast_channel/ |
cast_socket.cc | 390 VLOG(1) << "WriteData byte_count = " << request.io_buffer->size() 391 << " bytes_written " << request.io_buffer->BytesConsumed(); 395 request.io_buffer.get(), 396 request.io_buffer->BytesRemaining(), 412 scoped_refptr<net::DrainableIOBuffer> io_buffer = request.io_buffer; local 415 io_buffer->DidConsume(result); 416 if (io_buffer->BytesRemaining() > 0) { 417 VLOG(1) << "OnWriteComplete size = " << io_buffer->size() 418 << " consumed " << io_buffer->BytesConsumed( [all...] |
/external/chromium_org/net/spdy/ |
spdy_buffer_unittest.cc | 15 #include "net/base/io_buffer.h" 113 scoped_refptr<IOBuffer> io_buffer = buffer.GetIOBufferForRemainingData(); local 116 EXPECT_EQ(expectedData, std::string(io_buffer->data(), io_buffer_size)); 119 EXPECT_EQ(expectedData, std::string(io_buffer->data(), io_buffer_size)); 127 scoped_refptr<IOBuffer> io_buffer = buffer->GetIOBufferForRemainingData(); local 130 // This will cause a use-after-free error if |io_buffer| doesn't 132 std::memcpy(io_buffer->data(), kData, kDataSize);
|
/external/chromium_org/content/browser/streams/ |
stream.cc | 14 #include "net/base/io_buffer.h" 104 scoped_refptr<net::IOBuffer> io_buffer(new net::IOBuffer(size)); 105 memcpy(io_buffer->data(), data, size); 106 AddData(io_buffer, size);
|
/external/chromium_org/chrome/browser/extensions/api/sockets_tcp/ |
tcp_socket_event_dispatcher.h | 72 scoped_refptr<net::IOBuffer> io_buffer);
|
/external/chromium_org/chrome/browser/extensions/api/sockets_udp/ |
udp_socket_event_dispatcher.h | 69 scoped_refptr<net::IOBuffer> io_buffer,
|
udp_socket_event_dispatcher.cc | 101 scoped_refptr<net::IOBuffer> io_buffer, 114 receive_info.data = std::string(io_buffer->data(), bytes_read);
|
/external/chromium/net/udp/ |
udp_socket_unittest.cc | 10 #include "net/base/io_buffer.h" 58 scoped_refptr<StringIOBuffer> io_buffer(new StringIOBuffer(msg)); 60 new DrainableIOBuffer(io_buffer, length)); 93 scoped_refptr<StringIOBuffer> io_buffer(new StringIOBuffer(msg)); 95 new DrainableIOBuffer(io_buffer, length));
|
/external/chromium_org/webkit/browser/appcache/ |
appcache_response_unittest.cc | 16 #include "net/base/io_buffer.h" 185 void WriteResponseBody(scoped_refptr<IOBuffer> io_buffer, int buf_len) { 187 write_buffer_ = io_buffer; 195 void ReadResponseBody(scoped_refptr<IOBuffer> io_buffer, int buf_len) { 197 read_buffer_ = io_buffer; 453 scoped_refptr<IOBuffer> io_buffer( 455 FillData(block_number, io_buffer->data(), kBlockSize); 456 WriteResponseBody(io_buffer, kBlockSize);
|
/external/chromium/net/spdy/ |
spdy_http_stream.cc | 359 IOBufferWithSize* io_buffer = new IOBufferWithSize(length); local 360 memcpy(io_buffer->data(), data, length); 361 response_body_.push_back(make_scoped_refptr(io_buffer));
|