Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3071)

Unified Diff: chrome/browser/extensions/api/messaging/message_service.h

Issue 16174005: Implement externally_connectable! Web pages can now communicate directly with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no find copies Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2ef75334404c27e7c4cf9b15608ac8c03c82661e 100644
--- a/chrome/browser/extensions/api/messaging/message_service.h
+++ b/chrome/browser/extensions/api/messaging/message_service.h
@@ -212,6 +212,17 @@ class MessageService : public ProfileKeyedAPI,
PostMessage(port_id, message.Pass());
}
+ // Immediate dispatches a disconnect to |source| for |port_id| given |reason|.
Jeffrey Yasskin 2013/06/08 00:28:09 Is "reason" a human-readable string or something e
not at google - send to devlin 2013/06/08 02:02:33 Done.
+ void DispatchOnDisconnect(content::RenderProcessHost* source,
+ int port_id,
+ const std::string& extension_id,
+ const std::string& reason);
+ void DispatchOnDisconnect(content::RenderProcessHost* source,
+ int port_id,
+ const std::string& reason) {
+ DispatchOnDisconnect(source, port_id, std::string(), reason);
+ }
+
// ProfileKeyedAPI implementation.
static const char* service_name() {
return "MessageService";

Powered by Google App Engine
This is Rietveld 408576698