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

Side by Side Diff: webkit/plugins/ppapi/resource_tracker.h

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
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 WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_
6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_ 6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Increment resource's plugin refcount. See ResourceAndRefCount comments 52 // Increment resource's plugin refcount. See ResourceAndRefCount comments
53 // below. 53 // below.
54 bool AddRefResource(PP_Resource res); 54 bool AddRefResource(PP_Resource res);
55 bool UnrefResource(PP_Resource res); 55 bool UnrefResource(PP_Resource res);
56 56
57 // Returns the number of resources associated with this module. 57 // Returns the number of resources associated with this module.
58 uint32 GetLiveObjectsForInstance(PP_Instance instance) const; 58 uint32 GetLiveObjectsForInstance(PP_Instance instance) const;
59 59
60 // ResourceTrackerBase. 60 // ResourceTrackerBase.
61 virtual ::ppapi::ResourceObjectBase* GetResourceAPI( 61 virtual ::ppapi::ResourceObjectBase* GetResourceAPI(
62 PP_Resource res); 62 PP_Resource res) OVERRIDE;
63 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI( 63 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI(
64 PP_Instance pp_instance, 64 PP_Instance pp_instance,
65 pp::proxy::InterfaceID id); 65 pp::proxy::InterfaceID id) OVERRIDE;
66 virtual PP_Instance GetInstanceForResource(PP_Resource resource) OVERRIDE;
66 67
67 // PP_Vars ------------------------------------------------------------------- 68 // PP_Vars -------------------------------------------------------------------
68 69
69 scoped_refptr<Var> GetVar(int32 var_id) const; 70 scoped_refptr<Var> GetVar(int32 var_id) const;
70 71
71 bool AddRefVar(int32 var_id); 72 bool AddRefVar(int32 var_id);
72 bool UnrefVar(int32 var_id); 73 bool UnrefVar(int32 var_id);
73 74
74 // PP_Modules ---------------------------------------------------------------- 75 // PP_Modules ----------------------------------------------------------------
75 76
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 typedef std::map<PP_Module, PluginModule*> ModuleMap; 190 typedef std::map<PP_Module, PluginModule*> ModuleMap;
190 ModuleMap module_map_; 191 ModuleMap module_map_;
191 192
192 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); 193 DISALLOW_COPY_AND_ASSIGN(ResourceTracker);
193 }; 194 };
194 195
195 } // namespace ppapi 196 } // namespace ppapi
196 } // namespace webkit 197 } // namespace webkit
197 198
198 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_ 199 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.cc ('k') | webkit/plugins/ppapi/resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698