Lines Matching defs:source
2 // Use of this source code is governed by a BSD-style license that can be
143 RenderProcessHost* source = RenderProcessHost::FromID(source_process_id);
144 if (!source)
147 // Note: we use the source's profile here. If the source is an incognito
151 source->profile()->GetExtensionProcessManager()->GetExtensionProcess(
165 OpenChannelImpl(source, tab_json, receiver, receiver_port_id,
173 RenderProcessHost* source = RenderProcessHost::FromID(source_process_id);
174 if (!source)
179 if (ExtensionTabUtil::GetTabById(tab_id, source->profile(), true,
188 DispatchOnDisconnect(MessagePort(source, MSG_ROUTING_CONTROL),
204 OpenChannelImpl(source, tab_json, receiver, receiver_port_id,
209 IPC::Message::Sender* source,
215 if (!source)
220 DispatchOnDisconnect(MessagePort(source, MSG_ROUTING_CONTROL),
230 channel->opener = MessagePort(source, MSG_ROUTING_CONTROL);
250 const std::string& tab_json, IPC::Message::Sender* source) {
261 if (!OpenChannelImpl(source, tab_json, receiver, port2_id,
270 TabContents* target_tab_contents, IPC::Message::Sender* source) {
286 if (!OpenChannelImpl(source, "null", receiver, port2_id,
328 const NotificationSource& source,
333 RenderProcessHost* renderer = Source<RenderProcessHost>(source).ptr();
338 OnSenderClosed(Source<RenderViewHost>(source).ptr());