Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: Source/modules/speech/SpeechRecognitionAlternative.h

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make SpeechSynthesisVoice GC-finalized Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/speech/SpeechRecognitionAlternative.h
diff --git a/Source/modules/speech/SpeechRecognitionAlternative.h b/Source/modules/speech/SpeechRecognitionAlternative.h
index 464fe9e276e55c1839128720679955974880448b..e6280a963e8f50670b10c086dc3a3790f88dd2d9 100644
--- a/Source/modules/speech/SpeechRecognitionAlternative.h
+++ b/Source/modules/speech/SpeechRecognitionAlternative.h
@@ -27,6 +27,7 @@
#define SpeechRecognitionAlternative_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -34,13 +35,16 @@ namespace WebCore {
class ExecutionContext;
-class SpeechRecognitionAlternative : public ScriptWrappable, public RefCounted<SpeechRecognitionAlternative> {
+class SpeechRecognitionAlternative : public RefCountedWillBeGarbageCollectedFinalized<SpeechRecognitionAlternative>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<SpeechRecognitionAlternative> create(const String&, double);
+ static PassRefPtrWillBeRawPtr<SpeechRecognitionAlternative> create(const String&, double);
const String& transcript() const { return m_transcript; }
double confidence() const { return m_confidence; }
+ void trace(Visitor*) { }
+
private:
SpeechRecognitionAlternative(const String&, double);

Powered by Google App Engine
This is Rietveld 408576698