Index: Source/modules/speech/SpeechGrammar.h |
diff --git a/Source/modules/speech/SpeechGrammar.h b/Source/modules/speech/SpeechGrammar.h |
index e7bff2a37af6ae6a79bd5771e235c14ec852cf9b..2f3cab5c16a08501ae7d3bb0ca7b3fed6ded96db 100644 |
--- a/Source/modules/speech/SpeechGrammar.h |
+++ b/Source/modules/speech/SpeechGrammar.h |
@@ -27,6 +27,7 @@ |
#define SpeechGrammar_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
#include "wtf/RefCounted.h" |
#include "wtf/text/WTFString.h" |
@@ -35,10 +36,11 @@ namespace WebCore { |
class ExecutionContext; |
-class SpeechGrammar : public ScriptWrappable, public RefCounted<SpeechGrammar> { |
+class SpeechGrammar : public RefCountedWillBeGarbageCollectedFinalized<SpeechGrammar>, public ScriptWrappable { |
+ DECLARE_GC_INFO; |
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 PassRefPtrWillBeRawPtr<SpeechGrammar> create(); // FIXME: The spec is not clear on what the constructor should look like. |
+ static PassRefPtrWillBeRawPtr<SpeechGrammar> create(const KURL& src, double weight); |
const KURL& src(ExecutionContext*) const { return m_src; } |
const KURL& src() const { return m_src; } |
@@ -47,6 +49,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); |