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

Unified Diff: content/browser/navigator_connect/navigator_connect_context_impl.h

Issue 944443003: Step two of optionally sending messages to/from message ports as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-take2
Patch Set: use auto where it makes sense Created 5 years, 10 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: content/browser/navigator_connect/navigator_connect_context_impl.h
diff --git a/content/browser/navigator_connect/navigator_connect_context_impl.h b/content/browser/navigator_connect/navigator_connect_context_impl.h
index ce18d9ca50f400b2f2e78e445fee2b9af46048f5..1f53c5379a57455dcb8703143288a4c3c2d7aef2 100644
--- a/content/browser/navigator_connect/navigator_connect_context_impl.h
+++ b/content/browser/navigator_connect/navigator_connect_context_impl.h
@@ -14,9 +14,10 @@
namespace content {
class MessagePortMessageFilter;
-struct NavigatorConnectClient;
class NavigatorConnectService;
class NavigatorConnectServiceFactory;
+struct NavigatorConnectClient;
+struct TransferredMessagePort;
// Tracks all active navigator.connect connections, as well as available service
// factories. Delegates connection requests to the correct factory and passes
@@ -25,8 +26,10 @@ class NavigatorConnectServiceFactory;
// TODO(mek): Somehow clean up connections when the client side goes away.
class NavigatorConnectContextImpl : public NavigatorConnectContext {
public:
- using ConnectCallback = base::Callback<
- void(int message_port_id, int message_port_route_id, bool success)>;
+ using ConnectCallback =
+ base::Callback<void(const TransferredMessagePort& message_port,
+ int message_port_route_id,
+ bool success)>;
explicit NavigatorConnectContextImpl();
« no previous file with comments | « content/browser/message_port_service.cc ('k') | content/browser/navigator_connect/navigator_connect_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698