Home | History | Annotate | Download | only in renderer

Lines Matching refs:port_id

66 bool HasPortData(int port_id) {
67 return g_extension_data.Get().ports.find(port_id) !=
71 ExtensionData::PortData& GetPortData(int port_id) {
72 return g_extension_data.Get().ports[port_id];
75 void ClearPortData(int port_id) {
76 g_extension_data.Get().ports.erase(port_id);
107 void ClearPortDataAndNotifyDispatcher(int port_id) {
108 ClearPortData(port_id);
109 dispatcher_->ClearPortData(port_id);
118 // Arguments are (int32 port_id, string message).
121 int port_id = args[0]->Int32Value();
122 if (!HasPortData(port_id)) {
129 renderview->GetRoutingID(), port_id,
136 // Arguments are (int32 port_id, boolean notify_browser).
141 int port_id = args[0]->Int32Value();
142 if (!HasPortData(port_id))
149 new ExtensionHostMsg_CloseChannel(port_id, std::string()));
152 ClearPortDataAndNotifyDispatcher(port_id);
158 // Arguments are (int32 port_id).
162 int port_id = args[0]->Int32Value();
163 ++GetPortData(port_id).ref_count;
170 // Arguments are (int32 port_id).
174 int port_id = args[0]->Int32Value();
175 if (HasPortData(port_id) && --GetPortData(port_id).ref_count == 0) {
178 new ExtensionHostMsg_CloseChannel(port_id, std::string()));
179 ClearPortDataAndNotifyDispatcher(port_id);
351 void DispatchOnDisconnectToScriptContext(int port_id,
358 arguments.push_back(v8::Integer::New(isolate, port_id));
426 int port_id,
431 base::Bind(&DispatchOnDisconnectToScriptContext, port_id, error_message));