Home
last modified time | relevance | path

Searched refs:SerializedHandle (Results 1 – 25 of 48) sorted by relevance

12

/external/chromium_org/ppapi/proxy/
Dserialized_handle.cc20 SerializedHandle::SerializedHandle() in SerializedHandle() function in ppapi::proxy::SerializedHandle
29 SerializedHandle::SerializedHandle(Type type_param) in SerializedHandle() function in ppapi::proxy::SerializedHandle
38 SerializedHandle::SerializedHandle(const base::SharedMemoryHandle& handle, in SerializedHandle() function in ppapi::proxy::SerializedHandle
48 SerializedHandle::SerializedHandle( in SerializedHandle() function in ppapi::proxy::SerializedHandle
59 bool SerializedHandle::IsHandleValid() const { in IsHandleValid()
73 void SerializedHandle::Close() { in Close()
89 *this = SerializedHandle(); in Close()
93 bool SerializedHandle::WriteHeader(const Header& hdr, Pickle* pickle) { in WriteHeader()
108 bool SerializedHandle::ReadHeader(PickleIterator* iter, Header* hdr) { in ReadHeader()
Dresource_message_params.cc20 for (std::vector<SerializedHandle>::iterator iter = data_.begin(); in ~SerializedHandles()
59 IPC::ParamTraits<std::vector<SerializedHandle> >::Write(msg, in WriteHandles()
73 return IPC::ParamTraits<std::vector<SerializedHandle> >::Read( in ReadHandles()
84 SerializedHandle ResourceMessageParams::TakeHandleOfTypeAtIndex( in TakeHandleOfTypeAtIndex()
86 SerializedHandle::Type type) const { in TakeHandleOfTypeAtIndex()
87 SerializedHandle handle; in TakeHandleOfTypeAtIndex()
88 std::vector<SerializedHandle>& data = handles_->data(); in TakeHandleOfTypeAtIndex()
91 data[index] = SerializedHandle(); in TakeHandleOfTypeAtIndex()
99 SerializedHandle serialized = TakeHandleOfTypeAtIndex( in TakeSharedMemoryHandleAtIndex()
100 index, SerializedHandle::SHARED_MEMORY); in TakeSharedMemoryHandleAtIndex()
[all …]
Dplugin_dispatcher_unittest.cc77 ppapi::proxy::SerializedHandle( in TEST_F()
78 ppapi::proxy::SerializedHandle::SOCKET), in TEST_F()
79 ppapi::proxy::SerializedHandle( in TEST_F()
80 ppapi::proxy::SerializedHandle::SHARED_MEMORY)); in TEST_F()
Dserialized_handle.h30 class PPAPI_PROXY_EXPORT SerializedHandle {
53 SerializedHandle();
55 explicit SerializedHandle(Type type);
58 SerializedHandle(const base::SharedMemoryHandle& handle, uint32 size);
61 SerializedHandle(const Type type,
Dresource_message_params.h28 const std::vector<SerializedHandle>& handles() const { in handles()
43 SerializedHandle TakeHandleOfTypeAtIndex(size_t index,
44 SerializedHandle::Type type) const;
69 void AppendHandle(const SerializedHandle& handle) const;
94 std::vector<SerializedHandle>& data() { return data_; } in data()
108 std::vector<SerializedHandle> data_;
Dnacl_message_scanner.cc23 using ppapi::proxy::SerializedHandle;
28 typedef std::vector<SerializedHandle> Handles;
47 base::Callback<void(PP_Resource, const IPC::Message&, SerializedHandle*)>
52 const SerializedHandle& handle, in WriteHandle()
54 SerializedHandle::WriteHeader(handle.header(), msg); in WriteHandle()
56 if (handle.type() != SerializedHandle::INVALID) { in WriteHandle()
68 void ScanParam(const SerializedHandle& handle, ScanningResults* results) { in ScanParam()
76 const SerializedHandle& handle) { in HandleWriter()
82 std::vector<SerializedHandle*> var_handles = var.GetHandles(); in ScanParam()
131 SerializedHandle* handle = NULL; in ScanParam()
[all …]
Dppb_audio_proxy.h29 class SerializedHandle; variable
60 ppapi::proxy::SerializedHandle socket_handle,
61 ppapi::proxy::SerializedHandle handle);
Dnacl_message_scanner.h24 class SerializedHandle; variable
47 std::vector<SerializedHandle>* handles,
109 SerializedHandle* handle);
Dppb_graphics_3d_proxy.h27 class SerializedHandle; variable
36 const SerializedHandle& shared_state);
84 SerializedHandle* handle);
102 ppapi::proxy::SerializedHandle* transfer_buffer);
Dresource_message_test_sink.h17 class SerializedHandle; variable
94 void set_serialized_handle(const SerializedHandle* serialized_handle) { in set_serialized_handle()
102 const SerializedHandle* serialized_handle_; // Non-owning pointer.
Dppb_audio_proxy.cc27 using ppapi::proxy::SerializedHandle;
265 SerializedHandle fd_wrapper(SerializedHandle::SOCKET, socket_handle); in AudioChannelConnected()
266 SerializedHandle handle_wrapper(shared_memory, audio_buffer_length); in AudioChannelConnected()
314 SerializedHandle socket_handle, in OnMsgNotifyAudioStreamCreated()
315 SerializedHandle handle) { in OnMsgNotifyAudioStreamCreated()
Dppapi_param_traits.cc230 void ParamTraits<ppapi::proxy::SerializedHandle>::Write(Message* m, in Write()
232 ppapi::proxy::SerializedHandle::WriteHeader(p.header(), m); in Write()
234 case ppapi::proxy::SerializedHandle::SHARED_MEMORY: in Write()
237 case ppapi::proxy::SerializedHandle::SOCKET: in Write()
238 case ppapi::proxy::SerializedHandle::FILE: in Write()
241 case ppapi::proxy::SerializedHandle::INVALID: in Write()
248 bool ParamTraits<ppapi::proxy::SerializedHandle>::Read(const Message* m, in Read()
251 ppapi::proxy::SerializedHandle::Header header; in Read()
252 if (!ppapi::proxy::SerializedHandle::ReadHeader(iter, &header)) in Read()
255 case ppapi::proxy::SerializedHandle::SHARED_MEMORY: { in Read()
[all …]
Draw_var_data.h30 typedef base::Callback<void(IPC::Message*, const SerializedHandle&)>
75 std::vector<SerializedHandle*> GetHandles();
120 virtual SerializedHandle* GetHandle();
197 virtual SerializedHandle* GetHandle() OVERRIDE;
207 SerializedHandle plugin_shm_handle_;
Dppb_buffer_proxy.h20 class SerializedHandle; variable
70 ppapi::proxy::SerializedHandle* result_shm_handle);
Dnacl_message_scanner_unittest.cc45 std::vector<SerializedHandle> unused_handles; in OpenQuotaFile()
61 std::vector<SerializedHandle> unused_handles; in TEST_F()
139 std::vector<SerializedHandle> unused_handles; in TEST_F()
211 std::vector<SerializedHandle> unused_handles; in TEST_F()
Dppapi_command_buffer_proxy.h25 class SerializedHandle; variable
32 const SerializedHandle& shared_state);
Draw_var_data.cc205 std::vector<SerializedHandle*> RawVarDataGraph::GetHandles() { in GetHandles()
206 std::vector<SerializedHandle*> result; in GetHandles()
208 SerializedHandle* handle = data_[i]->GetHandle(); in GetHandles()
257 SerializedHandle* RawVarData::GetHandle() { in GetHandle()
428 plugin_shm_handle_ = SerializedHandle(plugin_handle, in Init()
515 if (!IPC::ParamTraits<SerializedHandle>::Read( in Read()
532 SerializedHandle* ArrayBufferRawVarData::GetHandle() { in GetHandle()
Dppb_graphics_3d_proxy.cc56 const SerializedHandle& shared_state) { in Init()
171 ppapi::proxy::SerializedHandle shared_state; in CreateProxyResource()
225 SerializedHandle* shared_state) { in OnMsgCreate()
299 SerializedHandle* transfer_buffer) { in OnMsgCreateTransferBuffer()
/external/chromium_org/content/renderer/pepper/
Dpepper_audio_input_host.cc149 ppapi::proxy::SerializedHandle serialized_socket_handle( in OnOpenComplete()
150 ppapi::proxy::SerializedHandle::SOCKET); in OnOpenComplete()
151 ppapi::proxy::SerializedHandle serialized_shared_memory_handle( in OnOpenComplete()
152 ppapi::proxy::SerializedHandle::SHARED_MEMORY); in OnOpenComplete()
Dpepper_media_stream_track_host_base.cc19 using ppapi::proxy::SerializedHandle;
73 SerializedHandle handle(host_->ShareHandleWithRemote(platform_file, false), in InitBuffers()
82 std::vector<SerializedHandle>(1, handle)); in InitBuffers()
/external/chromium_org/chrome/renderer/pepper/
Dpepper_shared_memory_message_filter.h19 class SerializedHandle; variable
41 ppapi::proxy::SerializedHandle* plugin_shm_handle);
/external/chromium_org/components/nacl/loader/
Dnacl_ipc_adapter.cc485 ppapi::proxy::SerializedHandle sh; in OnMessageReceived()
528 typedef std::vector<ppapi::proxy::SerializedHandle> Handles; in RewriteMessage()
543 case ppapi::proxy::SerializedHandle::SHARED_MEMORY: { in RewriteMessage()
555 case ppapi::proxy::SerializedHandle::SOCKET: { in RewriteMessage()
565 case ppapi::proxy::SerializedHandle::FILE: { in RewriteMessage()
585 case ppapi::proxy::SerializedHandle::INVALID: { in RewriteMessage()
605 ppapi::proxy::SerializedHandle sh) { in CreateOpenResourceReply()
615 ppapi::proxy::SerializedHandle::WriteHeader(sh.header(), in CreateOpenResourceReply()
638 ppapi::proxy::SerializedHandle sh; in OnFileTokenResolved()
689 ppapi::proxy::SerializedHandle sh; in OnFileTokenResolved()
/external/chromium_org/ppapi/host/
Dppapi_host.cc21 using proxy::SerializedHandle;
106 resource, msg, std::vector<SerializedHandle>()); in SendUnsolicitedReply()
112 const std::vector<SerializedHandle>& handles) { in SendUnsolicitedReplyWithHandles()
118 for (std::vector<SerializedHandle>::const_iterator it = handles.begin(); in SendUnsolicitedReplyWithHandles()
Dppapi_host.h28 class SerializedHandle; variable
70 const std::vector<proxy::SerializedHandle>& handles);
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_flash_file_message_filter.cc140 reply_context.params.AppendHandle(ppapi::proxy::SerializedHandle( in OnOpenFile()
141 ppapi::proxy::SerializedHandle::FILE, transit_file)); in OnOpenFile()
262 reply_context.params.AppendHandle(ppapi::proxy::SerializedHandle( in OnCreateTemporaryFile()
263 ppapi::proxy::SerializedHandle::FILE, transit_file)); in OnCreateTemporaryFile()

12