Home
last modified time | relevance | path

Searched refs:PortRef (Results 1 – 24 of 24) sorted by relevance

/external/libchrome/mojo/core/ports/
Dport_ref.cc13 PortRef::~PortRef() {} in ~PortRef()
15 PortRef::PortRef() {} in PortRef() function in mojo::core::ports::PortRef
17 PortRef::PortRef(const PortName& name, scoped_refptr<Port> port) in PortRef() function in mojo::core::ports::PortRef
20 PortRef::PortRef(const PortRef& other) = default;
22 PortRef::PortRef(PortRef&& other) = default;
24 PortRef& PortRef::operator=(const PortRef& other) = default;
26 PortRef& PortRef::operator=(PortRef&& other) = default;
Dnode.h92 int GetPort(const PortName& port_name, PortRef* port_ref); in COMPONENT_EXPORT()
98 int CreateUninitializedPort(PortRef* port_ref); in COMPONENT_EXPORT()
101 int InitializePort(const PortRef& port_ref, in COMPONENT_EXPORT()
107 int CreatePortPair(PortRef* port0_ref, PortRef* port1_ref); in COMPONENT_EXPORT()
110 int SetUserData(const PortRef& port_ref, scoped_refptr<UserData> user_data); in COMPONENT_EXPORT()
111 int GetUserData(const PortRef& port_ref, scoped_refptr<UserData>* user_data); in COMPONENT_EXPORT()
116 int ClosePort(const PortRef& port_ref); in COMPONENT_EXPORT()
119 int GetStatus(const PortRef& port_ref, PortStatus* port_status); in COMPONENT_EXPORT()
132 int GetMessage(const PortRef& port_ref, in COMPONENT_EXPORT()
139 int SendUserMessage(const PortRef& port_ref, in COMPONENT_EXPORT()
[all …]
Dport_ref.h20 class COMPONENT_EXPORT(MOJO_CORE_PORTS) PortRef { in COMPONENT_EXPORT()
22 ~PortRef(); in COMPONENT_EXPORT()
23 PortRef(); in COMPONENT_EXPORT()
24 PortRef(const PortName& name, scoped_refptr<Port> port); in COMPONENT_EXPORT()
26 PortRef(const PortRef& other); in COMPONENT_EXPORT()
27 PortRef(PortRef&& other); in COMPONENT_EXPORT()
29 PortRef& operator=(const PortRef& other); in COMPONENT_EXPORT()
30 PortRef& operator=(PortRef&& other); in COMPONENT_EXPORT()
Dnode.cc131 PortRef port_ref(entry.first, entry.second); in CanShutdownCleanly()
150 int Node::GetPort(const PortName& port_name, PortRef* port_ref) { in GetPort()
162 *port_ref = PortRef(port_name, iter->second); in GetPort()
166 int Node::CreateUninitializedPort(PortRef* port_ref) { in CreateUninitializedPort()
175 *port_ref = PortRef(port_name, std::move(port)); in CreateUninitializedPort()
179 int Node::InitializePort(const PortRef& port_ref, in InitializePort()
198 int Node::CreatePortPair(PortRef* port0_ref, PortRef* port1_ref) { in CreatePortPair()
220 int Node::SetUserData(const PortRef& port_ref, in SetUserData()
232 int Node::GetUserData(const PortRef& port_ref, in GetUserData()
244 int Node::ClosePort(const PortRef& port_ref) { in ClosePort()
[all …]
Dports_unittest.cc138 int SendStringMessage(const PortRef& port, const std::string& s) { in SendStringMessage()
142 int SendStringMessageWithPort(const PortRef& port, in SendStringMessageWithPort()
150 int SendStringMessageWithPort(const PortRef& port, in SendStringMessageWithPort()
152 const PortRef& sent_port) { in SendStringMessageWithPort()
166 bool ReadMessage(const PortRef& port, ScopedMessage* message) { in ReadMessage()
213 void PortStatusChanged(const PortRef& port) override { in PortStatusChanged()
237 PortRef port; in ClosePortsInEvent()
346 PortRef* port0, in CreatePortPair()
348 PortRef* port1) { in CreatePortPair()
419 PortRef x0, x1; in TEST_F()
[all …]
Dport_locker.h18 class PortRef; variable
31 PortLocker(const PortRef** port_refs, size_t num_ports);
39 Port* GetPort(const PortRef& port_ref) const { in GetPort()
61 const PortRef** const port_refs_;
70 explicit SinglePortLocker(const PortRef* port_ref);
76 const PortRef* port_ref_;
Dport_locker.cc33 PortLocker::PortLocker(const PortRef** port_refs, size_t num_ports) in PortLocker()
42 [](const PortRef* a, const PortRef* b) { return a->port() < b->port(); }); in PortLocker()
67 SinglePortLocker::SinglePortLocker(const PortRef* port_ref) in SinglePortLocker()
Dnode_delegate.h31 virtual void PortStatusChanged(const PortRef& port_ref) = 0;
/external/libchrome/mojo/core/
Dnode_controller.h83 const std::vector<std::pair<std::string, ports::PortRef>>& attached_ports,
92 const ports::PortRef& port,
97 void SetPortObserver(const ports::PortRef& port,
102 void ClosePort(const ports::PortRef& port);
105 int SendUserMessage(const ports::PortRef& port_ref,
111 const ports::PortRef& port);
114 int MergeLocalPorts(const ports::PortRef& port0, const ports::PortRef& port1);
139 using PortMap = std::map<std::string, ports::PortRef>;
146 const ports::PortRef& local_port,
155 ports::PortRef local_port;
[all …]
Ddata_pipe_producer_dispatcher.h36 const ports::PortRef& control_port,
77 const ports::PortRef& port,
92 const ports::PortRef control_port_;
Ddata_pipe_consumer_dispatcher.h36 const ports::PortRef& control_port,
78 const ports::PortRef& control_port,
93 const ports::PortRef control_port_;
Dnode_controller.cc178 const std::vector<std::pair<std::string, ports::PortRef>>& attached_ports, in SendBrokerClientInvitation()
234 const ports::PortRef& port, in ConnectIsolated()
243 void NodeController::SetPortObserver(const ports::PortRef& port, in SetPortObserver()
248 void NodeController::ClosePort(const ports::PortRef& port) { in ClosePort()
255 const ports::PortRef& port, in SendUserMessage()
261 const ports::PortRef& port) { in MergePortIntoInviter()
288 int NodeController::MergeLocalPorts(const ports::PortRef& port0, in MergeLocalPorts()
289 const ports::PortRef& port1) { in MergeLocalPorts()
400 ports::PortRef port, in ConnectIsolatedOnIOThread()
528 std::vector<ports::PortRef> ports_to_close; in DropPeer()
[all …]
Dinvitation_dispatcher.h29 ports::PortRef remote_peer_port) override;
33 using PortMapping = base::flat_map<std::string, ports::PortRef>;
Dinvitation_dispatcher.cc34 ports::PortRef remote_peer_port) { in AttachMessagePipe()
47 ports::PortRef remote_peer_port; in ExtractMessagePipe()
Dcore.h70 MojoHandle CreatePartialMessagePipe(ports::PortRef* peer);
74 MojoHandle CreatePartialMessagePipe(const ports::PortRef& port);
88 const std::vector<std::pair<std::string, ports::PortRef>>& attached_ports,
112 const ports::PortRef& port,
Dmessage_pipe_dispatcher.h39 const ports::PortRef& port,
93 const ports::PortRef port_;
Dmessage_pipe_dispatcher.cc87 const ports::PortRef& port, in MessagePipeDispatcher()
106 ports::PortRef port0; in Fuse()
114 ports::PortRef port1; in Fuse()
326 ports::PortRef port; in Deserialize()
Dcore.cc177 MojoHandle Core::CreatePartialMessagePipe(ports::PortRef* peer) { in CreatePartialMessagePipe()
179 ports::PortRef local_port; in CreatePartialMessagePipe()
185 MojoHandle Core::CreatePartialMessagePipe(const ports::PortRef& port) { in CreatePartialMessagePipe()
194 const std::vector<std::pair<std::string, ports::PortRef>>& attached_ports, in SendBrokerClientInvitation()
209 const ports::PortRef& port, in ConnectIsolated()
279 ports::PortRef port0, port1; in ExtractMessagePipeFromInvitation()
530 ports::PortRef port0, port1; in CreateMessagePipe()
700 ports::PortRef port0, port1; in CreateDataPipe()
1226 ports::PortRef remote_peer_port; in AttachMessagePipeToInvitation()
1370 std::vector<std::pair<std::string, ports::PortRef>> attached_ports; in SendInvitation()
[all …]
Ddata_pipe_control_message.h35 const ports::PortRef& port,
Ddata_pipe_control_message.cc15 const ports::PortRef& port, in SendDataPipeControlMessage()
Ddata_pipe_producer_dispatcher.cc74 const ports::PortRef& control_port, in Create()
340 ports::PortRef port; in Deserialize()
379 const ports::PortRef& control_port, in DataPipeProducerDispatcher()
Ddata_pipe_consumer_dispatcher.cc75 const ports::PortRef& control_port, in Create()
379 ports::PortRef port; in Deserialize()
419 const ports::PortRef& control_port, in DataPipeConsumerDispatcher()
Ddispatcher.h133 ports::PortRef remote_peer_port);
Ddispatcher.cc100 ports::PortRef remote_peer_port) { in AttachMessagePipe()