Chromium Code Reviews| 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)); |
| } |