Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / speech / SpeechGrammar.h
index e45a4e0..fb3cfe5 100644 (file)
 #ifndef SpeechGrammar_h
 #define SpeechGrammar_h
 
-#include "bindings/v8/ScriptWrappable.h"
-#include "weborigin/KURL.h"
-#include "wtf/RefCounted.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
 #include "wtf/text/WTFString.h"
 
-namespace WebCore {
+namespace blink {
 
 class ExecutionContext;
 
-class SpeechGrammar : public ScriptWrappable, public RefCounted<SpeechGrammar> {
+class SpeechGrammar FINAL : public GarbageCollectedFinalized<SpeechGrammar>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SpeechGrammar> create(); // FIXME: The spec is not clear on what the constructor should look like.
-    static PassRefPtr<SpeechGrammar> create(const KURL& src, double weight);
+    static SpeechGrammar* create(); // FIXME: The spec is not clear on what the constructor should look like.
+    static SpeechGrammar* create(const KURL& src, double weight);
 
     const KURL& src(ExecutionContext*) const { return m_src; }
     const KURL& src() const { return m_src; }
@@ -47,6 +48,8 @@ public:
     double weight() const { return m_weight; }
     void setWeight(double weight) { m_weight = weight; }
 
+    void trace(Visitor*) { }
+
 private:
     SpeechGrammar();
     SpeechGrammar(const KURL& src, double weight);
@@ -55,6 +58,6 @@ private:
     double m_weight;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SpeechGrammar_h