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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 1434903002: InternalResourcePtr: allowed only as stack allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 5f864aed86d49718d86a8e218bca6bd6e2f2182b..7e63e3d97a83a7758492a4d316242e9d4768c61d 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -283,6 +283,7 @@ protected:
// (ResourcePtrs and ResourceClients registering themselves) don't work in this case, so
// have a separate internal protector).
class InternalResourcePtr {
+ STACK_ALLOCATED();
public:
explicit InternalResourcePtr(Resource* resource)
: m_resource(resource)
@@ -296,7 +297,7 @@ protected:
m_resource->deleteIfPossible();
}
private:
- Resource* m_resource;
+ RawPtrWillBeMember<Resource> m_resource;
};
void incrementProtectorCount() { m_protectorCount++; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698