summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h')
-rw-r--r--chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h b/chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h
index 707918d6d01..fc155c92d98 100644
--- a/chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h
+++ b/chromium/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h
@@ -33,24 +33,28 @@
#include "core/frame/DOMWindowProperty.h"
#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
namespace WebCore {
class Crypto;
-class DOMWindow;
+class LocalDOMWindow;
-class DOMWindowCrypto : public Supplement<DOMWindow>, public DOMWindowProperty {
+class DOMWindowCrypto FINAL : public NoBaseWillBeGarbageCollectedFinalized<DOMWindowCrypto>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowCrypto);
public:
virtual ~DOMWindowCrypto();
- static DOMWindowCrypto* from(DOMWindow*);
- static Crypto* crypto(DOMWindow*);
+ static DOMWindowCrypto& from(LocalDOMWindow&);
+ static Crypto* crypto(LocalDOMWindow&);
Crypto* crypto() const;
+ void trace(Visitor*);
+
private:
- explicit DOMWindowCrypto(DOMWindow*);
+ explicit DOMWindowCrypto(LocalDOMWindow&);
static const char* supplementName();
- mutable RefPtr<Crypto> m_crypto;
+ mutable PersistentWillBeMember<Crypto> m_crypto;
};
} // namespace WebCore