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

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

Issue 1475813002: Mojo C++ bindings: support passing associated interface pointers/requests in method parameter lists… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_use_multiplex_router
Patch Set: Created 5 years, 1 month 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
Index: mojo/public/cpp/bindings/lib/map_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/map_serialization.h b/mojo/public/cpp/bindings/lib/map_serialization.h
index 6014b36bebec07648e295c4091f1ea81211ab0ce..6874fbe5aeda80318f07eca8280157804930823a 100644
--- a/mojo/public/cpp/bindings/lib/map_serialization.h
+++ b/mojo/public/cpp/bindings/lib/map_serialization.h
@@ -163,13 +163,14 @@ template <typename MapKey,
typename DataKey,
typename DataValue>
inline void Deserialize_(internal::Map_Data<DataKey, DataValue>* input,
- Map<MapKey, MapValue>* output) {
+ Map<MapKey, MapValue>* output,
+ internal::SerializationContext* context) {
if (input) {
Array<MapKey> keys;
Array<MapValue> values;
- Deserialize_(input->keys.ptr, &keys);
- Deserialize_(input->values.ptr, &values);
+ Deserialize_(input->keys.ptr, &keys, context);
+ Deserialize_(input->values.ptr, &values, context);
*output = Map<MapKey, MapValue>(keys.Pass(), values.Pass());
} else {
« no previous file with comments | « mojo/public/cpp/bindings/lib/interface_ptr_state.h ('k') | mojo/public/cpp/bindings/lib/pipe_control_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698