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

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

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.h
diff --git a/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.h b/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.h
new file mode 100644
index 0000000000000000000000000000000000000000..14476c29563411b2645e4d0f77afc8ee320cf1a1
--- /dev/null
+++ b/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULES_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULES_H_
+
+#include "ppapi/proxy/var_serialization_rules.h"
+
+namespace content {
+
+// Implementation of the VarSerializationRules interface for the browser plugin.
+class BrowserPluginVarSerializationRules :
+ public ppapi::proxy::VarSerializationRules {
+ public:
+ explicit BrowserPluginVarSerializationRules();
+ virtual ~BrowserPluginVarSerializationRules();
+
+ // VarSerialization implementation.
+ virtual PP_Var SendCallerOwned(const PP_Var& var);
+ virtual PP_Var BeginReceiveCallerOwned(const PP_Var& var);
+ virtual void EndReceiveCallerOwned(const PP_Var& var);
+ virtual PP_Var ReceivePassRef(const PP_Var& var);
+ virtual PP_Var BeginSendPassRef(const PP_Var& var);
+ virtual void EndSendPassRef(const PP_Var& var);
+ virtual void ReleaseObjectRef(const PP_Var& var);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowserPluginVarSerializationRules);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULES_H_

Powered by Google App Engine
This is Rietveld 408576698