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

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

Issue 10542150: Actually free plugin implement vars when running out of process when the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months 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/ppp_instance_proxy.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
(...skipping 13 matching lines...) Expand all
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_VarType GetType() const OVERRIDE; 29 virtual PP_VarType GetType() const OVERRIDE;
30 30
31 proxy::PluginDispatcher* dispatcher() const { return dispatcher_; } 31 proxy::PluginDispatcher* dispatcher() const { return dispatcher_; }
32 int32 host_var_id() const { return host_var_id_; } 32 int32 host_var_id() const { return host_var_id_; }
33 33
34 void* user_data() const { return user_data_; }
35 void set_user_data(void* ud) { user_data_ = ud; }
36
34 // Expose AssignVarID on Var so the PluginResourceTracker can call us when 37 // Expose AssignVarID on Var so the PluginResourceTracker can call us when
35 // it's creating IDs. 38 // it's creating IDs.
36 void AssignVarID(int32 id); 39 void AssignVarID(int32 id);
37 40
38 private: 41 private:
39 proxy::PluginDispatcher* dispatcher_; 42 proxy::PluginDispatcher* dispatcher_;
40 int32 host_var_id_; 43 int32 host_var_id_;
41 44
45 // When this object is created as representing a var implemented by the
46 // plugin, this stores the user data so that we can look it up later. See
47 // PluginVarTracker.
48 void* user_data_;
49
42 DISALLOW_COPY_AND_ASSIGN(ProxyObjectVar); 50 DISALLOW_COPY_AND_ASSIGN(ProxyObjectVar);
43 }; 51 };
44 52
45 } // namespace ppapi 53 } // namespace ppapi
46 54
47 #endif // PPAPI_PROXY_PROXY_OBJECT_VAR_H_ 55 #endif // PPAPI_PROXY_PROXY_OBJECT_VAR_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.cc ('k') | ppapi/proxy/proxy_object_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698