Index: content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc |
diff --git a/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc b/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..874527c3224d906c4c75cbe08d26f915bf4d111c |
--- /dev/null |
+++ b/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc |
@@ -0,0 +1,51 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/renderer/browser_plugin/browser_plugin_var_serialization_rules.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace content { |
+ |
+BrowserPluginVarSerializationRules::BrowserPluginVarSerializationRules() { |
+} |
+ |
+BrowserPluginVarSerializationRules::~BrowserPluginVarSerializationRules() { |
+} |
+ |
+PP_Var BrowserPluginVarSerializationRules::SendCallerOwned(const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+ return var; |
+} |
+ |
+PP_Var BrowserPluginVarSerializationRules::BeginReceiveCallerOwned( |
+ const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+ return var; |
+} |
+ |
+void BrowserPluginVarSerializationRules::EndReceiveCallerOwned( |
+ const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+} |
+ |
+PP_Var BrowserPluginVarSerializationRules::ReceivePassRef(const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+ return var; |
+} |
+ |
+PP_Var BrowserPluginVarSerializationRules::BeginSendPassRef(const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+ return var; |
+} |
+ |
+void BrowserPluginVarSerializationRules::EndSendPassRef(const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+} |
+ |
+void BrowserPluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) { |
+ DCHECK(var.type != PP_VARTYPE_OBJECT); |
+} |
+ |
+} // namespace content |