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

Unified Diff: ppapi/proxy/host_var_serialization_rules.cc

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « ppapi/proxy/host_var_serialization_rules.h ('k') | ppapi/proxy/image_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/host_var_serialization_rules.cc
===================================================================
--- ppapi/proxy/host_var_serialization_rules.cc (revision 71973)
+++ ppapi/proxy/host_var_serialization_rules.cc (working copy)
@@ -20,15 +20,17 @@
HostVarSerializationRules::~HostVarSerializationRules() {
}
-void HostVarSerializationRules::SendCallerOwned(const PP_Var& var,
- std::string* str_val) {
+PP_Var HostVarSerializationRules::SendCallerOwned(const PP_Var& var,
+ std::string* str_val) {
if (var.type == PP_VARTYPE_STRING)
VarToString(var, str_val);
+ return var;
}
PP_Var HostVarSerializationRules::BeginReceiveCallerOwned(
const PP_Var& var,
- const std::string* str_val) {
+ const std::string* str_val,
+ Dispatcher* /* dispatcher */) {
if (var.type == PP_VARTYPE_STRING) {
// Convert the string to the context of the current process.
return var_interface_->VarFromUtf8(pp_module_, str_val->c_str(),
@@ -45,7 +47,8 @@
}
PP_Var HostVarSerializationRules::ReceivePassRef(const PP_Var& var,
- const std::string& str_val) {
+ const std::string& str_val,
+ Dispatcher* /* dispatcher */) {
if (var.type == PP_VARTYPE_STRING) {
// Convert the string to the context of the current process.
return var_interface_->VarFromUtf8(pp_module_, str_val.c_str(),
@@ -58,12 +61,13 @@
return var;
}
-void HostVarSerializationRules::BeginSendPassRef(const PP_Var& var,
+PP_Var HostVarSerializationRules::BeginSendPassRef(const PP_Var& var,
std::string* str_val) {
// See PluginVarSerialization::ReceivePassRef for an example. We don't need
// to do anything here other than convert the string.
if (var.type == PP_VARTYPE_STRING)
VarToString(var, str_val);
+ return var;
}
void HostVarSerializationRules::EndSendPassRef(const PP_Var& var) {
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.h ('k') | ppapi/proxy/image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698