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

Unified Diff: examples/echo/echo_server.cc

Issue 1250463002: Renames WeakBindingSet to BindingSet. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 5 years, 5 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 | « apps/moterm/moterm_view.h ('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 b60d853df2519d32060fbda98211caa162e2b716..6ff79a68826c38f04029bd8db85b2ddab5eb4a79 100644
--- a/examples/echo/echo_server.cc
+++ b/examples/echo/echo_server.cc
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "examples/echo/echo.mojom.h"
-#include "mojo/common/weak_binding_set.h"
+#include "mojo/common/binding_set.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
@@ -22,7 +22,7 @@ namespace examples {
// 1. MultiServer - creates a new object for each connection. Cleans up by using
// StrongBinding.
// 2. SingletonServer -- all requests are handled by one object. Connections are
-// tracked using WeakBindingSet.
+// tracked using BindingSet.
// 3. OneAtATimeServer -- each Create call from InterfaceFactory<> closes the
// old interface pipe and binds the new interface pipe.
@@ -95,7 +95,7 @@ class SingletonServer : public mojo::ApplicationDelegate,
private:
EchoImpl echo_impl_;
- mojo::WeakBindingSet<Echo> bindings_;
+ mojo::BindingSet<Echo> bindings_;
};
// OneAtATimeServer works with only one pipe at a time. When a new pipe tries
« no previous file with comments | « apps/moterm/moterm_view.h ('k') | examples/echo_terminal/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698