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

Side by Side Diff: ppapi/proxy/plugin_var_serialization_rules.h

Issue 4096008: Var serialization-related proxy stuff. This allows vars to be sent over IPC... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 PPAPI_PROXY_PLUGIN_VAR_SERIALIZATION_RULES_H_
6 #define PPAPI_PROXY_PLUGIN_VAR_SERIALIZATION_RULES_H_
7
8 #include "base/basictypes.h"
9 #include "ppapi/proxy/var_serialization_rules.h"
10
11 namespace pp {
12 namespace proxy {
13
14 class PluginVarTracker;
15
16 // Implementation of the VarSerialization interface for the plugin.
17 class PluginVarSerializationRules : public VarSerializationRules {
18 public:
19 // This class will use the given non-owning pointer to the var tracker to
20 // handle object refcounting and string conversion.
21 PluginVarSerializationRules(PluginVarTracker* tracker);
22 ~PluginVarSerializationRules();
23
24 // VarSerialization implementation.
25 virtual void SendCallerOwned(const PP_Var& var, std::string* str_val);
26 virtual PP_Var BeginReceiveCallerOwned(const PP_Var& var,
27 const std::string* str_val);
28 virtual void EndReceiveCallerOwned(const PP_Var& var);
29 virtual PP_Var ReceivePassRef(const PP_Var& var,
30 const std::string& str_val);
31 virtual void BeginSendPassRef(const PP_Var& var, std::string* str_val);
32 virtual void EndSendPassRef(const PP_Var& var);
33 virtual void ReleaseObjectRef(const PP_Var& var);
34
35 private:
36 PluginVarTracker* var_tracker_;
37
38 DISALLOW_COPY_AND_ASSIGN(PluginVarSerializationRules);
39 };
40
41 } // namespace proxy
42 } // namespace pp
43
44 #endif // PPAPI_PROXY_PLUGIN_VAR_SERIALIZATION_RULES_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.cc ('k') | ppapi/proxy/plugin_var_serialization_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698