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

Unified Diff: mojo/public/cpp/bindings/interface_endpoint_client.h

Issue 2100683002: Mojo C++ Bindings: Extract AssociatedGroupController from MultiplexRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops more gyp ugh Created 4 years, 6 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: mojo/public/cpp/bindings/interface_endpoint_client.h
diff --git a/mojo/public/cpp/bindings/lib/interface_endpoint_client.h b/mojo/public/cpp/bindings/interface_endpoint_client.h
similarity index 93%
rename from mojo/public/cpp/bindings/lib/interface_endpoint_client.h
rename to mojo/public/cpp/bindings/interface_endpoint_client.h
index 8c72ff12cb2c2d4029f71f153859b8c51943052c..9dc40a2ea3fb90874bc3079a2dfde5c811eacff6 100644
--- a/mojo/public/cpp/bindings/lib/interface_endpoint_client.h
+++ b/mojo/public/cpp/bindings/interface_endpoint_client.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_ENDPOINT_CLIENT_H_
-#define MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_ENDPOINT_CLIENT_H_
+#ifndef MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
+#define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
#include <stdint.h>
@@ -24,10 +24,7 @@
namespace mojo {
class AssociatedGroup;
-
-namespace internal {
-
-class MultiplexRouter;
+class AssociatedGroupController;
class InterfaceEndpointController;
// InterfaceEndpointClient handles message sending and receiving of an interface
@@ -63,7 +60,9 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
return !async_responders_.empty() || !sync_responses_.empty();
}
- MultiplexRouter* router() const { return handle_.router(); }
+ AssociatedGroupController* group_controller() const {
+ return handle_.group_controller();
+ }
AssociatedGroup* associated_group();
uint32_t interface_id() const;
@@ -151,7 +150,6 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
DISALLOW_COPY_AND_ASSIGN(InterfaceEndpointClient);
};
-} // namespace internal
} // namespace mojo
-#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_ENDPOINT_CLIENT_H_
+#endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_ENDPOINT_CLIENT_H_
« no previous file with comments | « mojo/public/cpp/bindings/associated_group_controller.h ('k') | mojo/public/cpp/bindings/interface_endpoint_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698