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

Unified Diff: ppapi/proxy/host_var_serialization_rules.cc

Issue 9655019: Fix a crash related to PPAPI scripting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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/plugin_dispatcher.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
diff --git a/ppapi/proxy/host_var_serialization_rules.cc b/ppapi/proxy/host_var_serialization_rules.cc
index d6b5677e59c899dc8365ebe7cd4e2cbd2ffb872a..dcc965bd69121622deefe3aeb8c4dd4636ad3d8c 100644
--- a/ppapi/proxy/host_var_serialization_rules.cc
+++ b/ppapi/proxy/host_var_serialization_rules.cc
@@ -4,21 +4,16 @@
#include "ppapi/proxy/host_var_serialization_rules.h"
-#include "base/logging.h"
-#include "ppapi/c/ppb_var.h"
#include "ppapi/shared_impl/ppapi_globals.h"
-#include "ppapi/shared_impl/var.h"
#include "ppapi/shared_impl/var_tracker.h"
using ppapi::PpapiGlobals;
-using ppapi::StringVar;
using ppapi::VarTracker;
namespace ppapi {
namespace proxy {
-HostVarSerializationRules::HostVarSerializationRules(PP_Module pp_module)
- : pp_module_(pp_module) {
+HostVarSerializationRules::HostVarSerializationRules() {
}
HostVarSerializationRules::~HostVarSerializationRules() {
@@ -28,9 +23,7 @@ PP_Var HostVarSerializationRules::SendCallerOwned(const PP_Var& var) {
return var;
}
-PP_Var HostVarSerializationRules::BeginReceiveCallerOwned(
- const PP_Var& var,
- Dispatcher* /* dispatcher */) {
+PP_Var HostVarSerializationRules::BeginReceiveCallerOwned(const PP_Var& var) {
return var;
}
@@ -41,9 +34,7 @@ void HostVarSerializationRules::EndReceiveCallerOwned(const PP_Var& var) {
}
}
-PP_Var HostVarSerializationRules::ReceivePassRef(
- const PP_Var& var,
- Dispatcher* /* dispatcher */) {
+PP_Var HostVarSerializationRules::ReceivePassRef(const PP_Var& var) {
// See PluginVarSerialization::BeginSendPassRef for an example.
if (var.type == PP_VARTYPE_OBJECT)
PpapiGlobals::Get()->GetVarTracker()->AddRefVar(var);
@@ -54,8 +45,7 @@ PP_Var HostVarSerializationRules::BeginSendPassRef(const PP_Var& var) {
return var;
}
-void HostVarSerializationRules::EndSendPassRef(const PP_Var& /* var */,
- Dispatcher* /* dispatcher */) {
+void HostVarSerializationRules::EndSendPassRef(const PP_Var& /* var */) {
// See PluginVarSerialization::ReceivePassRef for an example. We don't need
// to do anything here.
}
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.h ('k') | ppapi/proxy/plugin_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698