Revert 251029 "Move Windows-specific code into NativeAppWindowVi..."
[chromium-blink-merge.git] / ppapi / proxy / host_var_serialization_rules.h
blob8de6cdecf347f138e95d6b589a7c3cbf9c62101a
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.
5 #ifndef PPAPI_PROXY_HOST_VAR_SERIALIZATION_RULES_H_
6 #define PPAPI_PROXY_HOST_VAR_SERIALIZATION_RULES_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "ppapi/c/ppb_var.h"
12 #include "ppapi/proxy/var_serialization_rules.h"
14 namespace ppapi {
15 namespace proxy {
17 // Implementation of the VarSerializationRules interface for the host side.
18 class HostVarSerializationRules : public VarSerializationRules {
19 public:
20 HostVarSerializationRules();
21 ~HostVarSerializationRules();
23 // VarSerialization implementation.
24 virtual PP_Var SendCallerOwned(const PP_Var& var);
25 virtual PP_Var BeginReceiveCallerOwned(const PP_Var& var);
26 virtual void EndReceiveCallerOwned(const PP_Var& var);
27 virtual PP_Var ReceivePassRef(const PP_Var& var);
28 virtual PP_Var BeginSendPassRef(const PP_Var& var);
29 virtual void EndSendPassRef(const PP_Var& var);
30 virtual void ReleaseObjectRef(const PP_Var& var);
32 private:
33 DISALLOW_COPY_AND_ASSIGN(HostVarSerializationRules);
36 } // namespace proxy
37 } // namespace ppapi
39 #endif // PPAPI_PROXY_HOST_VAR_SERIALIZATION_RULES_H_