#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; }
double weight() const { return m_weight; }
void setWeight(double weight) { m_weight = weight; }
+ void trace(Visitor*) { }
+
private:
SpeechGrammar();
SpeechGrammar(const KURL& src, double weight);
double m_weight;
};
-} // namespace WebCore
+} // namespace blink
#endif // SpeechGrammar_h