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

Unified Diff: ppapi/shared_impl/resource.cc

Issue 14869007: Merge 197686 "Remove Pepper URLLoader from resource tracker early." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1453/src/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/resource.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/resource.cc
===================================================================
--- ppapi/shared_impl/resource.cc (revision 198489)
+++ ppapi/shared_impl/resource.cc (working copy)
@@ -45,7 +45,7 @@
}
Resource::~Resource() {
- PpapiGlobals::Get()->GetResourceTracker()->RemoveResource(this);
+ RemoveFromResourceTracker();
}
PP_Resource Resource::GetReference() {
@@ -79,6 +79,10 @@
message);
}
+void Resource::RemoveFromResourceTracker() {
+ PpapiGlobals::Get()->GetResourceTracker()->RemoveResource(this);
+}
+
#define DEFINE_TYPE_GETTER(RESOURCE) \
thunk::RESOURCE* Resource::As##RESOURCE() { return NULL; }
FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER)
« no previous file with comments | « ppapi/shared_impl/resource.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698