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

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

Issue 8930010: Implement in-process PPB_VarArrayBuffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ppapi_unittests Created 9 years 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
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ppapi/proxy/proxy_object_var.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PROXY_OBJECT_VAR_H_ 5 #ifndef PPAPI_PROXY_PROXY_OBJECT_VAR_H_
6 #define PPAPI_PROXY_PROXY_OBJECT_VAR_H_ 6 #define PPAPI_PROXY_PROXY_OBJECT_VAR_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/var.h" 9 #include "ppapi/shared_impl/var.h"
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 namespace proxy { 13 namespace proxy {
14 class PluginDispatcher; 14 class PluginDispatcher;
15 } // namespace proxy 15 } // namespace proxy
16 16
17 // Tracks a reference to an object var in the plugin side of the proxy. This 17 // Tracks a reference to an object var in the plugin side of the proxy. This
18 // just stores the dispatcher and host var ID, and provides the interface for 18 // just stores the dispatcher and host var ID, and provides the interface for
19 // integrating this with PP_Var creation. 19 // integrating this with PP_Var creation.
20 class ProxyObjectVar : public Var { 20 class ProxyObjectVar : public Var {
21 public: 21 public:
22 ProxyObjectVar(proxy::PluginDispatcher* dispatcher, 22 ProxyObjectVar(proxy::PluginDispatcher* dispatcher,
23 int32 host_var_id); 23 int32 host_var_id);
24 24
25 virtual ~ProxyObjectVar(); 25 virtual ~ProxyObjectVar();
26 26
27 // Var overrides. 27 // Var overrides.
28 virtual ProxyObjectVar* AsProxyObjectVar() OVERRIDE; 28 virtual ProxyObjectVar* AsProxyObjectVar() OVERRIDE;
29 virtual PP_Var GetPPVar() OVERRIDE;
dmichael (off chromium) 2011/12/13 20:43:27 See Var.h; this was easy to make non-virtual and j
30 virtual PP_VarType GetType() const OVERRIDE; 29 virtual PP_VarType GetType() const OVERRIDE;
31 30
32 proxy::PluginDispatcher* dispatcher() const { return dispatcher_; } 31 proxy::PluginDispatcher* dispatcher() const { return dispatcher_; }
33 int32 host_var_id() const { return host_var_id_; } 32 int32 host_var_id() const { return host_var_id_; }
34 33
35 // Expose AssignVarID on Var so the PluginResourceTracker can call us when 34 // Expose AssignVarID on Var so the PluginResourceTracker can call us when
36 // it's creating IDs. 35 // it's creating IDs.
37 void AssignVarID(int32 id); 36 void AssignVarID(int32 id);
38 37
39 private: 38 private:
40 proxy::PluginDispatcher* dispatcher_; 39 proxy::PluginDispatcher* dispatcher_;
41 int32 host_var_id_; 40 int32 host_var_id_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(ProxyObjectVar); 42 DISALLOW_COPY_AND_ASSIGN(ProxyObjectVar);
44 }; 43 };
45 44
46 } // namespace ppapi 45 } // namespace ppapi
47 46
48 #endif // PPAPI_PROXY_PROXY_OBJECT_VAR_H_ 47 #endif // PPAPI_PROXY_PROXY_OBJECT_VAR_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ppapi/proxy/proxy_object_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698