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

Unified Diff: examples/echo/echo_server.cc

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate 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: examples/echo/echo_server.cc
diff --git a/examples/echo/echo_server.cc b/examples/echo/echo_server.cc
index 9cf1ddf5ab1608b8208609698f35e08147093634..50bb7cd09afacc3a307c6459785fa16ce730f258 100644
--- a/examples/echo/echo_server.cc
+++ b/examples/echo/echo_server.cc
@@ -56,7 +56,7 @@ class MultiServer : public mojo::ApplicationDelegate,
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
+ mojo::ApplicationConnection* connection, const std::string& url) override {
connection->AddService<Echo>(this);
return true;
}
@@ -79,7 +79,8 @@ class SingletonServer : public mojo::ApplicationDelegate,
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
+ mojo::ApplicationConnection* connection,
+ const std::string& url) override {
connection->AddService<Echo>(this);
return true;
}
@@ -111,7 +112,7 @@ class OneAtATimeServer : public mojo::ApplicationDelegate,
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
+ mojo::ApplicationConnection* connection, const std::string& url) override {
connection->AddService<Echo>(this);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698