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

Unified Diff: mojo/public/cpp/bindings/lib/handle_interface_serialization.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/lib/handle_interface_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/handle_interface_serialization.h b/mojo/public/cpp/bindings/lib/handle_interface_serialization.h
index 7ba698494fd761626d5aa69f84d3b5c55f931b31..344c2cae4e2db9d09b78737725c19af1595629fd 100644
--- a/mojo/public/cpp/bindings/lib/handle_interface_serialization.h
+++ b/mojo/public/cpp/bindings/lib/handle_interface_serialization.h
@@ -5,12 +5,12 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_HANDLE_INTERFACE_SERIALIZATION_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_HANDLE_INTERFACE_SERIALIZATION_H_
+#include "mojo/public/cpp/bindings/associated_group_controller.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr_info.h"
#include "mojo/public/cpp/bindings/associated_interface_request.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
-#include "mojo/public/cpp/bindings/lib/multiplex_router.h"
#include "mojo/public/cpp/bindings/lib/serialization_context.h"
#include "mojo/public/cpp/bindings/lib/serialization_forward.h"
#include "mojo/public/cpp/system/handle.h"
@@ -25,7 +25,8 @@ struct Serializer<AssociatedInterfacePtrInfo<T>,
AssociatedInterface_Data* output,
SerializationContext* context) {
DCHECK(!input.handle().is_valid() || !input.handle().is_local());
- DCHECK_EQ(input.handle().router(), context->router.get());
+ DCHECK_EQ(input.handle().group_controller(),
+ context->group_controller.get());
output->version = input.version();
output->interface_id = input.PassHandle().release();
}
@@ -33,7 +34,7 @@ struct Serializer<AssociatedInterfacePtrInfo<T>,
static bool Deserialize(AssociatedInterface_Data* input,
AssociatedInterfacePtrInfo<T>* output,
SerializationContext* context) {
- output->set_handle(context->router->CreateLocalEndpointHandle(
+ output->set_handle(context->group_controller->CreateLocalEndpointHandle(
FetchAndReset(&input->interface_id)));
output->set_version(input->version);
return true;
@@ -47,14 +48,15 @@ struct Serializer<AssociatedInterfaceRequest<T>,
AssociatedInterfaceRequest_Data* output,
SerializationContext* context) {
DCHECK(!input.handle().is_valid() || !input.handle().is_local());
- DCHECK_EQ(input.handle().router(), context->router.get());
+ DCHECK_EQ(input.handle().group_controller(),
+ context->group_controller.get());
output->interface_id = input.PassHandle().release();
}
static bool Deserialize(AssociatedInterfaceRequest_Data* input,
AssociatedInterfaceRequest<T>* output,
SerializationContext* context) {
- output->Bind(context->router->CreateLocalEndpointHandle(
+ output->Bind(context->group_controller->CreateLocalEndpointHandle(
FetchAndReset(&input->interface_id)));
return true;
}
« no previous file with comments | « mojo/public/cpp/bindings/lib/bindings_internal.h ('k') | mojo/public/cpp/bindings/lib/interface_endpoint_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698