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

Unified Diff: mojo/public/cpp/bindings/lib/bindings_serialization.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
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/lib/interface_ptr_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/bindings_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/bindings_serialization.h b/mojo/public/cpp/bindings/lib/bindings_serialization.h
index 21221f72bb55380c70b08d06a7114f04778ce05a..c99f69f6bcea90c60716a3d88d1f361ea9baa81d 100644
--- a/mojo/public/cpp/bindings/lib/bindings_serialization.h
+++ b/mojo/public/cpp/bindings/lib/bindings_serialization.h
@@ -16,7 +16,7 @@ template <typename I>
class InterfacePtr;
template <typename I>
-class InterfacePtrInfo;
+class InterfaceHandle;
namespace internal {
@@ -79,7 +79,7 @@ inline void Decode(T* obj, std::vector<Handle>* handles) {
template <typename T>
inline void InterfacePointerToData(InterfacePtr<T> input,
Interface_Data* output) {
- InterfacePtrInfo<T> info = input.PassInterface();
+ InterfaceHandle<T> info = input.PassInterface();
jamesr 2016/02/03 22:42:57 it's weird that PassInterface() returns a Interfac
output->handle = info.PassHandle().release();
output->version = info.version();
}
@@ -87,7 +87,7 @@ inline void InterfacePointerToData(InterfacePtr<T> input,
template <typename T>
inline void InterfaceDataToPointer(Interface_Data* input,
InterfacePtr<T>* output) {
- output->Bind(InterfacePtrInfo<T>(
+ output->Bind(InterfaceHandle<T>(
MakeScopedHandle(FetchAndReset(&input->handle)), input->version));
}
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/lib/interface_ptr_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698