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

Unified Diff: mojo/public/cpp/bindings/lib/handle_interface_serialization.h

Issue 2646853003: Mojo C++ bindings: Simplify associated interface API. (Closed)
Patch Set: . Created 3 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: 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 c7b3cb2b59c4d25db8932150ed2bd51599287997..14ed21f0ac822fa6af8aad2dcf8bb01843e8cdfe 100644
--- a/mojo/public/cpp/bindings/lib/handle_interface_serialization.h
+++ b/mojo/public/cpp/bindings/lib/handle_interface_serialization.h
@@ -36,7 +36,7 @@ struct Serializer<AssociatedInterfacePtrInfoDataView<Base>,
static void Serialize(AssociatedInterfacePtrInfo<T>& input,
AssociatedInterface_Data* output,
SerializationContext* context) {
- DCHECK(!input.handle().is_valid() || !input.handle().is_local());
+ DCHECK(!input.handle().is_valid() || input.handle().pending_association());
if (input.handle().is_valid()) {
// Set to the index of the element pushed to the back of the vector.
output->handle.value =
@@ -79,7 +79,7 @@ struct Serializer<AssociatedInterfaceRequestDataView<Base>,
static void Serialize(AssociatedInterfaceRequest<T>& input,
AssociatedEndpointHandle_Data* output,
SerializationContext* context) {
- DCHECK(!input.handle().is_valid() || !input.handle().is_local());
+ DCHECK(!input.handle().is_valid() || input.handle().pending_association());
if (input.handle().is_valid()) {
// Set to the index of the element pushed to the back of the vector.
output->value =
« no previous file with comments | « mojo/public/cpp/bindings/lib/binding_state.cc ('k') | mojo/public/cpp/bindings/lib/interface_endpoint_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698