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

Unified Diff: examples/echo/echo_server.cc

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « examples/content_handler_demo/content_handler_demo.cc ('k') | examples/echo_terminal/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/echo/echo_server.cc
diff --git a/examples/echo/echo_server.cc b/examples/echo/echo_server.cc
index 43a975e0eeecf66d3c6d867baa1c5e52ca00317e..7cd54d5df5c10d227a639e4ff48cd9ca2703ecb9 100644
--- a/examples/echo/echo_server.cc
+++ b/examples/echo/echo_server.cc
@@ -64,7 +64,7 @@ class MultiServer : public mojo::ApplicationDelegate,
}
// From InterfaceFactory<Echo>
- void Create(mojo::ApplicationConnection* connection,
+ void Create(const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> request) override {
// This object will be deleted automatically because of the use of
// StrongBinding<> for the declaration of |strong_binding_|.
@@ -87,7 +87,7 @@ class SingletonServer : public mojo::ApplicationDelegate,
}
// From InterfaceFactory<Echo>
- void Create(mojo::ApplicationConnection* connection,
+ void Create(const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> request) override {
// All channels will connect to this singleton object, so just
// add the binding to our collection.
@@ -119,7 +119,7 @@ class OneAtATimeServer : public mojo::ApplicationDelegate,
}
// From InterfaceFactory<Echo>
- void Create(mojo::ApplicationConnection* connection,
+ void Create(const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> request) override {
binding_.Bind(request.Pass());
}
« no previous file with comments | « examples/content_handler_demo/content_handler_demo.cc ('k') | examples/echo_terminal/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698