Chromium Code Reviews| 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..f718afb6b0651e88d63eabaaca4751e9661e0353 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 |
| + // |error_message| for source if non-empty. |
|
Jeffrey Yasskin
2013/06/08 02:27:47
If the source is non-empty? What's it mean to set
not at google - send to devlin
2013/06/08 02:36:50
Done.
|
| + void DispatchOnDisconnect(content::RenderProcessHost* source, |
| + int port_id, |
| + const std::string& reason); |
|
Jeffrey Yasskin
2013/06/08 02:27:47
Remember to rename this argument.
not at google - send to devlin
2013/06/08 02:36:50
Done.
|
| + |
| // ProfileKeyedAPI implementation. |
| static const char* service_name() { |
| return "MessageService"; |