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

Unified Diff: content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated according to creis@'s comments Created 8 years, 7 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: 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

Powered by Google App Engine
This is Rietveld 408576698