| Index: mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
| diff --git a/mojo/public/cpp/bindings/associated_interface_ptr_info.h b/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
| index a393bcea1d7df7c6e91897219b48ea52d00374e5..0477c8cbae333a9b94c041c489c781bf80cb0433 100644
|
| --- a/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
| +++ b/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
| @@ -57,6 +57,15 @@ class AssociatedInterfacePtrInfo {
|
| uint32_t version() const { return version_; }
|
| void set_version(uint32_t version) { version_ = version; }
|
|
|
| + bool Equals(const AssociatedInterfacePtrInfo& other) const {
|
| + if (this == &other)
|
| + return true;
|
| +
|
| + // Now that the two refer to different objects, they are equivalent if
|
| + // and only if they are both invalid.
|
| + return !is_valid() && !other.is_valid();
|
| + }
|
| +
|
| private:
|
| ScopedInterfaceEndpointHandle handle_;
|
| uint32_t version_;
|
|
|