| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/interface_ptr.h" | 10 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 inline void InterfaceDataToPointer(Interface_Data* input, | 82 inline void InterfaceDataToPointer(Interface_Data* input, |
| 83 InterfacePtr<T>* output) { | 83 InterfacePtr<T>* output) { |
| 84 output->Bind(InterfacePtrInfo<T>( | 84 output->Bind(InterfacePtrInfo<T>( |
| 85 MakeScopedHandle(FetchAndReset(&input->handle)), input->version)); | 85 MakeScopedHandle(FetchAndReset(&input->handle)), input->version)); |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace internal | 88 } // namespace internal |
| 89 } // namespace mojo | 89 } // namespace mojo |
| 90 | 90 |
| 91 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ | 91 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_SERIALIZATION_H_ |
| OLD | NEW |