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

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

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch SpeechRecognitionResult over to WillBeHeapVector also 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/SpeechSynthesisVoice.h
diff --git a/Source/modules/speech/SpeechSynthesisVoice.h b/Source/modules/speech/SpeechSynthesisVoice.h
index 21d17960e50a50214ca5ce3c0632ce7dc490c260..e8eaa79c5dc77ff136c42b12a6673e49c895204b 100644
--- a/Source/modules/speech/SpeechSynthesisVoice.h
+++ b/Source/modules/speech/SpeechSynthesisVoice.h
@@ -27,6 +27,7 @@
#define SpeechSynthesisVoice_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "platform/speech/PlatformSpeechSynthesisVoice.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -34,9 +35,10 @@
namespace WebCore {
-class SpeechSynthesisVoice FINAL : public ScriptWrappable, public RefCounted<SpeechSynthesisVoice> {
+class SpeechSynthesisVoice FINAL : public RefCountedWillBeGarbageCollected<SpeechSynthesisVoice>, public ScriptWrappable {
haraken 2014/02/12 11:12:54 RefCountedWillBeGarbageCollected => RefCountedWill
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<SpeechSynthesisVoice> create(PassRefPtr<PlatformSpeechSynthesisVoice>);
+ static PassRefPtrWillBeRawPtr<SpeechSynthesisVoice> create(PassRefPtr<PlatformSpeechSynthesisVoice>);
const String& voiceURI() const { return m_platformVoice->voiceURI(); }
const String& name() const { return m_platformVoice->name(); }
@@ -46,6 +48,8 @@ public:
PlatformSpeechSynthesisVoice* platformVoice() const { return m_platformVoice.get(); }
+ void trace(Visitor*) { }
+
private:
explicit SpeechSynthesisVoice(PassRefPtr<PlatformSpeechSynthesisVoice>);

Powered by Google App Engine
This is Rietveld 408576698