From 55ef04e135edaa9abfbf3647634b11ed57dc49e9 Mon Sep 17 00:00:00 2001 From: "cdn@chromium.org" Date: Mon, 20 Jun 2011 22:33:52 +0000 Subject: Maintain a map of all resources in the resource tracker and clear instance back pointers when needed, BUG=85808 Review URL: http://codereview.chromium.org/7196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89746 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/ppapi/resource_tracker.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webkit/plugins/ppapi/resource_tracker.h') diff --git a/webkit/plugins/ppapi/resource_tracker.h b/webkit/plugins/ppapi/resource_tracker.h index d5618e6..b728895 100644 --- a/webkit/plugins/ppapi/resource_tracker.h +++ b/webkit/plugins/ppapi/resource_tracker.h @@ -120,6 +120,13 @@ class ResourceTracker : public ::ppapi::TrackerBase { ResourceTracker(); ~ResourceTracker(); + // Called when a new resource is created and associates it with its + // PluginInstance. + void ResourceCreated(Resource* resource, PluginInstance* instance); + + // Removes a resource from the resource map. + void ResourceDestroyed(Resource* resource); + // Adds the given resource to the tracker and assigns it a resource ID and // refcount of 1. The assigned resource ID will be returned. Used only by the // Resource class. -- cgit v1.1