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

Unified Diff: Source/modules/quota/StorageQuotaCallbacksImpl.h

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/modules/quota/StorageQuotaCallbacksImpl.h
diff --git a/Source/modules/quota/StorageQuotaCallbacksImpl.h b/Source/modules/quota/StorageQuotaCallbacksImpl.h
index 8bf4228bc7bd8320cb2eb0925d8f5076ca589af4..db4323ac5d7f1213e066417b70be756efb4d2fde 100644
--- a/Source/modules/quota/StorageQuotaCallbacksImpl.h
+++ b/Source/modules/quota/StorageQuotaCallbacksImpl.h
@@ -42,7 +42,7 @@ namespace blink {
class StorageQuotaCallbacksImpl final : public StorageQuotaCallbacks {
WTF_MAKE_NONCOPYABLE(StorageQuotaCallbacksImpl);
public:
- static StorageQuotaCallbacksImpl* create(PassRefPtr<ScriptPromiseResolver> resolver)
+ static StorageQuotaCallbacksImpl* create(PassRefPtrWillBeRawPtr<ScriptPromiseResolver> resolver)
{
return new StorageQuotaCallbacksImpl(resolver);
}
@@ -53,10 +53,12 @@ public:
virtual void didGrantStorageQuota(unsigned long long usageInBytes, unsigned long long grantedQuotaInBytes) override;
virtual void didFail(WebStorageQuotaError) override;
+ virtual void trace(Visitor*) override;
+
private:
- explicit StorageQuotaCallbacksImpl(PassRefPtr<ScriptPromiseResolver>);
+ explicit StorageQuotaCallbacksImpl(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>);
- RefPtr<ScriptPromiseResolver> m_resolver;
+ RefPtrWillBeMember<ScriptPromiseResolver> m_resolver;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698