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

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

Issue 1926123002: Add a ctor for InterfaceRequest<I> that takes a ScopedMessagePipeHandle, and remove MakeRequest<I>(… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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/tests/validation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/array_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/array_serialization.h b/mojo/public/cpp/bindings/lib/array_serialization.h
index 7119baa921e6304f16f07313ef46cda0c9df5f3d..7c8f515a812d569c75606d4002035303d1f24dc9 100644
--- a/mojo/public/cpp/bindings/lib/array_serialization.h
+++ b/mojo/public/cpp/bindings/lib/array_serialization.h
@@ -27,9 +27,6 @@
namespace mojo {
-template <typename Interface>
-InterfaceRequest<Interface> MakeRequest(ScopedMessagePipeHandle handle);
-
namespace internal {
// The ArraySerializer template contains static methods for serializing |Array|s
@@ -235,7 +232,8 @@ struct ArraySerializer<InterfaceRequest<I>, MessagePipeHandle, false> {
auto result = Array<InterfaceRequest<I>>::New(input->size());
for (size_t i = 0; i < input->size(); ++i)
result.at(i) =
- MakeRequest<I>(MakeScopedHandle(FetchAndReset(&input->at(i)))).Pass();
+ InterfaceRequest<I>(MakeScopedHandle(FetchAndReset(&input->at(i))))
+ .Pass();
output->Swap(&result);
}
};
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698