NaClIPCAdapter 47 components/nacl/loader/nacl_ipc_adapter.cc if (len < sizeof(NaClIPCAdapter::NaClMessageHeader)) NaClIPCAdapter 50 components/nacl/loader/nacl_ipc_adapter.cc const NaClIPCAdapter::NaClMessageHeader* header = NaClIPCAdapter 51 components/nacl/loader/nacl_ipc_adapter.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(data); NaClIPCAdapter 53 components/nacl/loader/nacl_ipc_adapter.cc sizeof(NaClIPCAdapter::NaClMessageHeader) + header->payload_size; NaClIPCAdapter 66 components/nacl/loader/nacl_ipc_adapter.cc explicit DescThunker(NaClIPCAdapter* adapter_arg) NaClIPCAdapter 69 components/nacl/loader/nacl_ipc_adapter.cc scoped_refptr<NaClIPCAdapter> adapter; NaClIPCAdapter 72 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter* ToAdapter(void* handle) { NaClIPCAdapter 91 components/nacl/loader/nacl_ipc_adapter.cc NaClDesc* MakeNaClDescCustom(NaClIPCAdapter* adapter) { NaClIPCAdapter 241 components/nacl/loader/nacl_ipc_adapter.cc void SetData(const NaClIPCAdapter::NaClMessageHeader& header, NaClIPCAdapter 265 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::RewrittenMessage::RewrittenMessage() NaClIPCAdapter 270 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::RewrittenMessage::SetData( NaClIPCAdapter 271 components/nacl/loader/nacl_ipc_adapter.cc const NaClIPCAdapter::NaClMessageHeader& header, NaClIPCAdapter 275 components/nacl/loader/nacl_ipc_adapter.cc size_t header_len = sizeof(NaClIPCAdapter::NaClMessageHeader); NaClIPCAdapter 279 components/nacl/loader/nacl_ipc_adapter.cc memcpy(data_.get(), &header, sizeof(NaClIPCAdapter::NaClMessageHeader)); NaClIPCAdapter 283 components/nacl/loader/nacl_ipc_adapter.cc int NaClIPCAdapter::RewrittenMessage::Read(NaClImcTypedMsgHdr* msg) { NaClIPCAdapter 313 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::LockedData::LockedData() NaClIPCAdapter 317 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::LockedData::~LockedData() { NaClIPCAdapter 320 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::IOThreadData::IOThreadData() { NaClIPCAdapter 323 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::IOThreadData::~IOThreadData() { NaClIPCAdapter 326 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::NaClIPCAdapter(const IPC::ChannelHandle& handle, NaClIPCAdapter 341 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::NaClIPCAdapter(scoped_ptr<IPC::Channel> channel, NaClIPCAdapter 350 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::ConnectChannel() { NaClIPCAdapter 352 components/nacl/loader/nacl_ipc_adapter.cc base::Bind(&NaClIPCAdapter::ConnectChannelOnIOThread, this)); NaClIPCAdapter 357 components/nacl/loader/nacl_ipc_adapter.cc int NaClIPCAdapter::Send(const NaClImcTypedMsgHdr* msg) { NaClIPCAdapter 425 components/nacl/loader/nacl_ipc_adapter.cc int NaClIPCAdapter::BlockingReceive(NaClImcTypedMsgHdr* msg) { NaClIPCAdapter 446 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::CloseChannel() { NaClIPCAdapter 454 components/nacl/loader/nacl_ipc_adapter.cc base::Bind(&NaClIPCAdapter::CloseChannelOnIOThread, this)); NaClIPCAdapter 457 components/nacl/loader/nacl_ipc_adapter.cc NaClDesc* NaClIPCAdapter::MakeNaClDesc() { NaClIPCAdapter 462 components/nacl/loader/nacl_ipc_adapter.cc int NaClIPCAdapter::TakeClientFileDescriptor() { NaClIPCAdapter 467 components/nacl/loader/nacl_ipc_adapter.cc bool NaClIPCAdapter::OnMessageReceived(const IPC::Message& msg) { NaClIPCAdapter 547 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::OnChannelConnected(int32 peer_pid) { NaClIPCAdapter 550 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::OnChannelError() { NaClIPCAdapter 554 components/nacl/loader/nacl_ipc_adapter.cc NaClIPCAdapter::~NaClIPCAdapter() { NaClIPCAdapter 560 components/nacl/loader/nacl_ipc_adapter.cc int NaClIPCAdapter::LockedReceive(NaClImcTypedMsgHdr* msg) { NaClIPCAdapter 577 components/nacl/loader/nacl_ipc_adapter.cc bool NaClIPCAdapter::SendCompleteMessage(const char* buffer, NaClIPCAdapter 627 components/nacl/loader/nacl_ipc_adapter.cc base::Bind(&NaClIPCAdapter::SendMessageOnIOThread, this, NaClIPCAdapter 632 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::ClearToBeSent() { NaClIPCAdapter 640 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::ConnectChannelOnIOThread() { NaClIPCAdapter 645 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::CloseChannelOnIOThread() { NaClIPCAdapter 649 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::SendMessageOnIOThread(scoped_ptr<IPC::Message> message) { NaClIPCAdapter 653 components/nacl/loader/nacl_ipc_adapter.cc void NaClIPCAdapter::SaveMessage(const IPC::Message& msg, NaClIPCAdapter 54 components/nacl/loader/nacl_ipc_adapter.h class NaClIPCAdapter : public base::RefCountedThreadSafe<NaClIPCAdapter>, NaClIPCAdapter 79 components/nacl/loader/nacl_ipc_adapter.h NaClIPCAdapter(const IPC::ChannelHandle& handle, base::TaskRunner* runner); NaClIPCAdapter 83 components/nacl/loader/nacl_ipc_adapter.h NaClIPCAdapter(scoped_ptr<IPC::Channel> channel, base::TaskRunner* runner); NaClIPCAdapter 116 components/nacl/loader/nacl_ipc_adapter.h friend class base::RefCountedThreadSafe<NaClIPCAdapter>; NaClIPCAdapter 153 components/nacl/loader/nacl_ipc_adapter.h virtual ~NaClIPCAdapter(); NaClIPCAdapter 186 components/nacl/loader/nacl_ipc_adapter.h DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); NaClIPCAdapter 33 components/nacl/loader/nacl_ipc_adapter_unittest.cc adapter_ = new NaClIPCAdapter(scoped_ptr<IPC::Channel>(sink_), NaClIPCAdapter 60 components/nacl/loader/nacl_ipc_adapter_unittest.cc scoped_refptr<NaClIPCAdapter> adapter_; NaClIPCAdapter 90 components/nacl/loader/nacl_ipc_adapter_unittest.cc EXPECT_EQ(sizeof(NaClIPCAdapter::NaClMessageHeader) + sizeof(int), NaClIPCAdapter 93 components/nacl/loader/nacl_ipc_adapter_unittest.cc const NaClIPCAdapter::NaClMessageHeader* output_header = NaClIPCAdapter 94 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); NaClIPCAdapter 105 components/nacl/loader/nacl_ipc_adapter_unittest.cc sizeof(NaClIPCAdapter::NaClMessageHeader)])); NaClIPCAdapter 115 components/nacl/loader/nacl_ipc_adapter_unittest.cc const int buf_size = sizeof(NaClIPCAdapter::NaClMessageHeader) + sizeof(int); NaClIPCAdapter 118 components/nacl/loader/nacl_ipc_adapter_unittest.cc NaClIPCAdapter::NaClMessageHeader* header = NaClIPCAdapter 119 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<NaClIPCAdapter::NaClMessageHeader*>(buf); NaClIPCAdapter 126 components/nacl/loader/nacl_ipc_adapter_unittest.cc &buf[sizeof(NaClIPCAdapter::NaClMessageHeader)]) = value; NaClIPCAdapter 201 components/nacl/loader/nacl_ipc_adapter_unittest.cc EXPECT_EQ(sizeof(NaClIPCAdapter::NaClMessageHeader) + sizeof(int), NaClIPCAdapter 205 components/nacl/loader/nacl_ipc_adapter_unittest.cc const NaClIPCAdapter::NaClMessageHeader* output_header = NaClIPCAdapter 206 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); NaClIPCAdapter 213 components/nacl/loader/nacl_ipc_adapter_unittest.cc EXPECT_EQ(sizeof(NaClIPCAdapter::NaClMessageHeader) + sizeof(int), NaClIPCAdapter 216 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<const NaClIPCAdapter::NaClMessageHeader*>(buf); NaClIPCAdapter 232 components/nacl/loader/nacl_ipc_adapter_unittest.cc const int buf_size = sizeof(NaClIPCAdapter::NaClMessageHeader) + sizeof(int); NaClIPCAdapter 236 components/nacl/loader/nacl_ipc_adapter_unittest.cc NaClIPCAdapter::NaClMessageHeader* header = NaClIPCAdapter 237 components/nacl/loader/nacl_ipc_adapter_unittest.cc reinterpret_cast<NaClIPCAdapter::NaClMessageHeader*>(buf); NaClIPCAdapter 244 components/nacl/loader/nacl_ipc_adapter_unittest.cc &buf[sizeof(NaClIPCAdapter::NaClMessageHeader)]) = value; NaClIPCAdapter 279 components/nacl/loader/nacl_ipc_adapter_unittest.cc explicit MyThread(NaClIPCAdapter* adapter) NaClIPCAdapter 287 components/nacl/loader/nacl_ipc_adapter_unittest.cc scoped_refptr<NaClIPCAdapter> adapter_; NaClIPCAdapter 122 components/nacl/loader/nacl_listener.cc scoped_refptr<NaClIPCAdapter> ipc_adapter( NaClIPCAdapter 123 components/nacl/loader/nacl_listener.cc new NaClIPCAdapter(*handle, message_loop_proxy.get()));