| 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_
|
|
|