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

Unified Diff: ppapi/shared_impl/resource_tracker.h

Issue 9015009: Use the new callback tracker and delete the old one (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/resource_tracker.h
diff --git a/ppapi/shared_impl/resource_tracker.h b/ppapi/shared_impl/resource_tracker.h
index e60d8e06237828c318644dd6667101172c4386d3..b58541382a483661af7747d29417c1781a097904 100644
--- a/ppapi/shared_impl/resource_tracker.h
+++ b/ppapi/shared_impl/resource_tracker.h
@@ -59,10 +59,9 @@ class PPAPI_SHARED_EXPORT ResourceTracker {
// the given resource. It's called from the resource destructor.
virtual void RemoveResource(Resource* object);
- // Calls LastPluginRefWasDeleted on the given resource object. This is
- // provided because the derived class in webkit/plugins/ppapi needs to
- // perform additional operations at this time.
- virtual void LastPluginRefWasDeleted(Resource* object);
+ // Calls LastPluginRefWasDeleted on the given resource object and cancels
+ // pending callbacks for the resource.
+ void LastPluginRefWasDeleted(Resource* object);
private:
typedef std::set<PP_Resource> ResourceSet;

Powered by Google App Engine
This is Rietveld 408576698