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

Side by Side Diff: mojo/public/bindings/generators/cpp_templates/params_serialization

Issue 66353002: Mojo: RemotePtr<S> + bindings changes for Peer attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix error in sample_service.h Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 template <> 1 template <>
2 class ObjectTraits<sample::Service_Frobinate_Params> { 2 class ObjectTraits<$CLASS> {
3 public: 3 public:
4 static void EncodePointersAndHandles( 4 static void EncodePointersAndHandles(
5 $CLASS* $NAME, 5 $CLASS* $NAME,
6 std::vector<Handle>* handles) { 6 std::vector<Handle>* handles) {
7 $ENCODES 7 $ENCODES
8 $ENCODE_HANDLES 8 $ENCODE_HANDLES
9 } 9 }
10 10
11 static bool DecodePointersAndHandles( 11 static bool DecodePointersAndHandles(
12 $CLASS* $NAME, 12 $CLASS* $NAME,
13 const Message& message) { 13 const Message& message) {
14 $DECODES 14 $DECODES
15 $DECODE_HANDLES 15 $DECODE_HANDLES
16 return true; 16 return true;
17 } 17 }
18 }; 18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698