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

Unified Diff: examples/echo/echo_server.cc

Issue 1979723002: ApplicationConnection devolution, part 3. (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/echo/README.md ('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 2da7ede4e9c8868db37af770d8c12d8639481005..aa82a20090ab540000cf26e8b759b4bf0b0ec109 100644
--- a/examples/echo/echo_server.cc
+++ b/examples/echo/echo_server.cc
@@ -56,8 +56,8 @@ class MultiServer : public mojo::ApplicationDelegate {
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- connection->GetServiceProviderImpl().AddService<Echo>(
+ ServiceProviderImpl* service_provider_impl) override {
+ service_provider_impl->AddService<Echo>(
[](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> echo_request) {
// This object will be deleted automatically because of the use of
@@ -76,8 +76,8 @@ class SingletonServer : public mojo::ApplicationDelegate {
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- connection->GetServiceProviderImpl().AddService<Echo>(
+ ServiceProviderImpl* service_provider_impl) override {
+ service_provider_impl->AddService<Echo>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> echo_request) {
// All channels will connect to this singleton object, so just
@@ -105,8 +105,8 @@ class OneAtATimeServer : public mojo::ApplicationDelegate {
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- connection->GetServiceProviderImpl().AddService<Echo>(
+ ServiceProviderImpl* service_provider_impl) override {
+ service_provider_impl->AddService<Echo>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Echo> echo_request) {
binding_.Bind(echo_request.Pass());
« no previous file with comments | « examples/echo/README.md ('k') | examples/echo_terminal/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698