| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MojoHelper_h | 5 #ifndef MojoHelper_h |
| 6 #define MojoHelper_h | 6 #define MojoHelper_h |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "mojo/public/cpp/bindings/callback.h" | 9 #include "mojo/public/cpp/bindings/callback.h" |
| 10 #include "mojo/public/cpp/bindings/wtf_array.h" | 10 #include "mojo/public/cpp/bindings/wtf_array.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 WTFArray<T> result(input.size()); | 54 WTFArray<T> result(input.size()); |
| 55 for (size_t i = 0; i < input.size(); ++i) | 55 for (size_t i = 0; i < input.size(); ++i) |
| 56 result[i] = TypeConverter<T, E>::Convert(input[i]); | 56 result[i] = TypeConverter<T, E>::Convert(input[i]); |
| 57 return std::move(result); | 57 return std::move(result); |
| 58 } | 58 } |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace mojo | 61 } // namespace mojo |
| 62 | 62 |
| 63 #endif // MojoHelper_h | 63 #endif // MojoHelper_h |
| OLD | NEW |