Index: chrome/browser/extensions/api/messaging/message_service.h |
diff --git a/chrome/browser/extensions/api/messaging/message_service.h b/chrome/browser/extensions/api/messaging/message_service.h |
index 2236b82d7b2a6c3fc08d1e159ca3c8b473bf3549..59ba6ffb0a9382d3e2431ce934ebb1328781099d 100644 |
--- a/chrome/browser/extensions/api/messaging/message_service.h |
+++ b/chrome/browser/extensions/api/messaging/message_service.h |
@@ -212,6 +212,12 @@ class MessageService : public ProfileKeyedAPI, |
PostMessage(port_id, message.Pass()); |
} |
+ // Immediate dispatches a disconnect to |source| for |port_id|. Sets source's |
+ // runtime.lastMessage to |error_message|, if any. |
+ void DispatchOnDisconnect(content::RenderProcessHost* source, |
+ int port_id, |
+ const std::string& error_message); |
+ |
// ProfileKeyedAPI implementation. |
static const char* service_name() { |
return "MessageService"; |