OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULES_H
_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULES_H
_ |
| 7 |
| 8 #include "ppapi/proxy/var_serialization_rules.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // Implementation of the VarSerializationRules interface for the browser plugin. |
| 13 class BrowserPluginVarSerializationRules : |
| 14 public ppapi::proxy::VarSerializationRules { |
| 15 public: |
| 16 explicit BrowserPluginVarSerializationRules(); |
| 17 virtual ~BrowserPluginVarSerializationRules(); |
| 18 |
| 19 // VarSerialization implementation. |
| 20 virtual PP_Var SendCallerOwned(const PP_Var& var); |
| 21 virtual PP_Var BeginReceiveCallerOwned(const PP_Var& var); |
| 22 virtual void EndReceiveCallerOwned(const PP_Var& var); |
| 23 virtual PP_Var ReceivePassRef(const PP_Var& var); |
| 24 virtual PP_Var BeginSendPassRef(const PP_Var& var); |
| 25 virtual void EndSendPassRef(const PP_Var& var); |
| 26 virtual void ReleaseObjectRef(const PP_Var& var); |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(BrowserPluginVarSerializationRules); |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULE
S_H_ |
OLD | NEW |