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

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

Issue 7006022: Revert 87415 - Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://svn.chromium.org/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) OVERRIDE; 62 PP_Resource res);
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) OVERRIDE; 65 pp::proxy::InterfaceID id);
66 virtual PP_Instance GetInstanceForResource(PP_Resource resource) OVERRIDE;
67 66
68 // PP_Vars ------------------------------------------------------------------- 67 // PP_Vars -------------------------------------------------------------------
69 68
70 scoped_refptr<Var> GetVar(int32 var_id) const; 69 scoped_refptr<Var> GetVar(int32 var_id) const;
71 70
72 bool AddRefVar(int32 var_id); 71 bool AddRefVar(int32 var_id);
73 bool UnrefVar(int32 var_id); 72 bool UnrefVar(int32 var_id);
74 73
75 // PP_Modules ---------------------------------------------------------------- 74 // PP_Modules ----------------------------------------------------------------
76 75
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 typedef std::map<PP_Module, PluginModule*> ModuleMap; 189 typedef std::map<PP_Module, PluginModule*> ModuleMap;
191 ModuleMap module_map_; 190 ModuleMap module_map_;
192 191
193 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); 192 DISALLOW_COPY_AND_ASSIGN(ResourceTracker);
194 }; 193 };
195 194
196 } // namespace ppapi 195 } // namespace ppapi
197 } // namespace webkit 196 } // namespace webkit
198 197
199 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_TRACKER_H_ 198 #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