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

Unified Diff: Source/modules/screen_orientation/LockOrientationCallback.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/screen_orientation/LockOrientationCallback.h
diff --git a/Source/modules/screen_orientation/LockOrientationCallback.h b/Source/modules/screen_orientation/LockOrientationCallback.h
index ba2abe0be4bd0c93b66d33d43e31cb5059092c09..f206a1815f92a87a04191966b168f365557f68d7 100644
--- a/Source/modules/screen_orientation/LockOrientationCallback.h
+++ b/Source/modules/screen_orientation/LockOrientationCallback.h
@@ -5,6 +5,7 @@
#ifndef LockOrientationCallback_h
#define LockOrientationCallback_h
+#include "platform/heap/Handle.h"
#include "public/platform/WebLockOrientationCallback.h"
#include "public/platform/WebScreenOrientationType.h"
#include "wtf/Noncopyable.h"
@@ -21,14 +22,14 @@ class ScriptPromiseResolver;
class LockOrientationCallback final : public WebLockOrientationCallback {
WTF_MAKE_NONCOPYABLE(LockOrientationCallback);
public:
- explicit LockOrientationCallback(PassRefPtr<ScriptPromiseResolver>);
+ explicit LockOrientationCallback(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>);
virtual ~LockOrientationCallback();
virtual void onSuccess() override;
virtual void onError(WebLockOrientationError) override;
private:
- RefPtr<ScriptPromiseResolver> m_resolver;
+ RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698