Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / crypto / Algorithm.h
index 779bf28..f25d9d0 100644 (file)
@@ -32,6 +32,7 @@
 #define Algorithm_h
 
 #include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
 #include "public/platform/WebCryptoAlgorithm.h"
 #include "wtf/Forward.h"
 #include "wtf/PassRefPtr.h"
 
 namespace WebCore {
 
-class Algorithm : public ScriptWrappable, public RefCounted<Algorithm> {
+class Algorithm : public RefCountedWillBeGarbageCollectedFinalized<Algorithm>, public ScriptWrappable {
+    DECLARE_GC_INFO;
 public:
-    static PassRefPtr<Algorithm> create(const blink::WebCryptoAlgorithm&);
+    static PassRefPtrWillBeRawPtr<Algorithm> create(const blink::WebCryptoAlgorithm&);
 
     String name();
 
     blink::WebCryptoAlgorithmParamsType type() const { return m_algorithm.paramsType(); }
 
+    void trace(Visitor*) { }
+
 protected:
     explicit Algorithm(const blink::WebCryptoAlgorithm&);