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

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

Issue 1660403003: Mojo C++ bindings: Rename InterfaceInfoPtr -> InterfaceHandle (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: using {{InterfaceName}}Handle = InterfaceHandle<{{InterfaceName}}> Created 4 years, 11 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/interface_ptr_internal.h
diff --git a/mojo/public/cpp/bindings/lib/interface_ptr_internal.h b/mojo/public/cpp/bindings/lib/interface_ptr_internal.h
index f26c43d5d55195c710465604391d982296d7c726..889c3d75f1df60e97668a8f932b06dde6f40998a 100644
--- a/mojo/public/cpp/bindings/lib/interface_ptr_internal.h
+++ b/mojo/public/cpp/bindings/lib/interface_ptr_internal.h
@@ -10,7 +10,7 @@
#include <utility>
#include "mojo/public/cpp/bindings/callback.h"
-#include "mojo/public/cpp/bindings/interface_ptr_info.h"
+#include "mojo/public/cpp/bindings/interface_handle.h"
#include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
#include "mojo/public/cpp/bindings/lib/message_header_validator.h"
#include "mojo/public/cpp/bindings/lib/router.h"
@@ -80,7 +80,7 @@ class InterfacePtrState {
swap(other->version_, version_);
}
- void Bind(InterfacePtrInfo<Interface> info, const MojoAsyncWaiter* waiter) {
+ void Bind(InterfaceHandle<Interface> info, const MojoAsyncWaiter* waiter) {
MOJO_DCHECK(!proxy_);
MOJO_DCHECK(!router_);
MOJO_DCHECK(!handle_.is_valid());
@@ -103,8 +103,8 @@ class InterfacePtrState {
// After this method is called, the object is in an invalid state and
// shouldn't be reused.
- InterfacePtrInfo<Interface> PassInterface() {
- return InterfacePtrInfo<Interface>(
+ InterfaceHandle<Interface> PassInterface() {
+ return InterfaceHandle<Interface>(
router_ ? router_->PassMessagePipe() : handle_.Pass(), version_);
}

Powered by Google App Engine
This is Rietveld 408576698