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

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

Issue 1432213002: MockImageResourceClient: tidy up Resource reference. (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/MockImageResourceClient.h
diff --git a/third_party/WebKit/Source/core/fetch/MockImageResourceClient.h b/third_party/WebKit/Source/core/fetch/MockImageResourceClient.h
index e802be38d4fc1f66c667e6e2038cb6eafa55ef29..914e12691587b905f2b4b30a76dfd9b6a21dac86 100644
--- a/third_party/WebKit/Source/core/fetch/MockImageResourceClient.h
+++ b/third_party/WebKit/Source/core/fetch/MockImageResourceClient.h
@@ -32,6 +32,7 @@
#define MockImageResourceClient_h
#include "core/fetch/ImageResourceClient.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -58,7 +59,8 @@ public:
void removeAsClient();
private:
- Resource* m_resource;
+ // TODO(Oilpan): properly trace when ImageResourceClient is on the heap.
+ RawPtrWillBeUntracedMember<Resource> m_resource;
int m_imageChangedCount;
bool m_notifyFinishedCalled;
};
« 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