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

Unified Diff: ppapi/proxy/serialized_var.h

Issue 6519057: Implement proxying for FileRef and FileChooser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
Index: ppapi/proxy/serialized_var.h
===================================================================
--- ppapi/proxy/serialized_var.h (revision 74966)
+++ ppapi/proxy/serialized_var.h (working copy)
@@ -215,6 +215,12 @@
PP_Var Return(Dispatcher* dispatcher);
+ // Helper function for code that doesn't use the pattern above, but gets
+ // a return value from the remote side via a struct. You can pass in the
+ // SerializedVar and a PP_Var will be created with return value semantics.
+ static PP_Var Convert(Dispatcher* dispatcher,
+ const SerializedVar& serialized);
+
private:
DISALLOW_COPY_AND_ASSIGN(ReceiveSerializedVarReturnValue);
};
@@ -355,6 +361,11 @@
void Return(Dispatcher* dispatcher, const PP_Var& var);
+ // Helper function for code that doesn't use the pattern above, but gets
+ // a return value from the remote side via a struct. You can pass in the
+ // SerializedVar and a PP_Var will be created with return value semantics.
+ static SerializedVar Convert(Dispatcher* dispatcher, const PP_Var& var);
+
private:
SerializedVar* serialized_;
};

Powered by Google App Engine
This is Rietveld 408576698