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 | |
18 // VarSerialization implementation. | |
19 virtual PP_Var SendCallerOwned(const PP_Var& var) OVERRIDE; | |
20 virtual PP_Var BeginReceiveCallerOwned(const PP_Var& var) OVERRIDE; | |
21 virtual void EndReceiveCallerOwned(const PP_Var& var) OVERRIDE; | |
22 virtual PP_Var ReceivePassRef(const PP_Var& var) OVERRIDE; | |
23 virtual PP_Var BeginSendPassRef(const PP_Var& var) OVERRIDE; | |
24 virtual void EndSendPassRef(const PP_Var& var) OVERRIDE; | |
25 virtual void ReleaseObjectRef(const PP_Var& var) OVERRIDE; | |
26 | |
27 private: | |
28 virtual ~BrowserPluginVarSerializationRules(); | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(BrowserPluginVarSerializationRules); | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_VAR_SERIALIZATION_RULE
S_H_ | |
OLD | NEW |