Home | History | Annotate | Download | only in debugger

Lines Matching refs:port_id

243     int port_id;
244 if (args.GetString(0, &message) && args.GetInteger(1, &port_id))
245 OnExtensionMessage(message, port_id);
248 int port_id;
249 if (args.GetInteger(0, &port_id))
250 OnExtensionPortDisconnected(port_id);
261 const std::string& message, int port_id) {
262 VLOG(1) << "Message event: from port " << port_id << ", < " << message << ">";
274 SendResponse(content, kToolName, base::IntToString(port_id));
277 void ExtensionPortsRemoteService::OnExtensionPortDisconnected(int port_id) {
278 VLOG(1) << "Disconnect event for port " << port_id;
279 openPortIds_.erase(port_id);
283 SendResponse(content, kToolName, base::IntToString(port_id));
303 int port_id;
322 port_id = service_->OpenSpecialChannelToTab(
329 port_id = service_->OpenSpecialChannelToExtension(
332 if (port_id == -1) {
338 VLOG(1) << "Connected: port " << port_id;
339 openPortIds_.insert(port_id);
342 reply_data->SetInteger(kPortIdKey, port_id);
348 int port_id, DictionaryValue* response) {
349 VLOG(1) << "Disconnect port " << port_id;
350 PortIdSet::iterator portEntry = openPortIds_.find(port_id);
352 VLOG(1) << "unknown port: " << port_id;
357 service_->CloseChannel(port_id);
363 int port_id, DictionaryValue* content, DictionaryValue* response) {
372 VLOG(1) << "postMessage: port " << port_id
374 PortIdSet::iterator portEntry = openPortIds_.find(port_id);
376 VLOG(1) << "unknown port: " << port_id;
382 service_->PostMessageFromRenderer(port_id, message);