| Index: webkit/plugins/ppapi/resource_tracker.h
|
| diff --git a/webkit/plugins/ppapi/resource_tracker.h b/webkit/plugins/ppapi/resource_tracker.h
|
| index b72889506f130c0c7f9b1095690e98d6c99e7fd7..84669e18220d7df901411a2b1e5925e67e5f5560 100644
|
| --- a/webkit/plugins/ppapi/resource_tracker.h
|
| +++ b/webkit/plugins/ppapi/resource_tracker.h
|
| @@ -175,10 +175,11 @@ class ResourceTracker : public ::ppapi::TrackerBase {
|
|
|
| // For each PP_Resource, keep the Resource* (as refptr) and plugin use count.
|
| // This use count is different then Resource's RefCount, and is manipulated
|
| - // using this RefResource/UnrefResource. When it drops to zero, we just remove
|
| - // the resource from this resource tracker, but the resource object will be
|
| - // alive so long as some scoped_refptr still holds it's reference. This
|
| - // prevents plugins from forcing destruction of Resource objects.
|
| + // using this AddRefResource/UnrefResource. When it drops to zero, we just
|
| + // remove the resource from this resource tracker, but the resource object
|
| + // will be alive so long as some scoped_refptr still holds it's
|
| + // reference. This prevents plugins from forcing destruction of Resource
|
| + // objects.
|
| typedef std::pair<scoped_refptr<Resource>, size_t> ResourceAndRefCount;
|
| typedef base::hash_map<PP_Resource, ResourceAndRefCount> ResourceMap;
|
| ResourceMap live_resources_;
|
|
|