summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h')
-rw-r--r--chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h b/chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h
index 75b3043470a..0a03543f35e 100644
--- a/chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h
+++ b/chromium/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesisVoice.h
@@ -27,16 +27,15 @@
#define PlatformSpeechSynthesisVoice_h
#include "platform/PlatformExport.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class PLATFORM_EXPORT PlatformSpeechSynthesisVoice : public RefCounted<PlatformSpeechSynthesisVoice> {
+class PLATFORM_EXPORT PlatformSpeechSynthesisVoice FINAL : public GarbageCollectedFinalized<PlatformSpeechSynthesisVoice> {
public:
- static PassRefPtr<PlatformSpeechSynthesisVoice> create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault);
- static PassRefPtr<PlatformSpeechSynthesisVoice> create();
+ static PlatformSpeechSynthesisVoice* create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault);
+ static PlatformSpeechSynthesisVoice* create();
const String& voiceURI() const { return m_voiceURI; }
void setVoiceURI(const String& voiceURI) { m_voiceURI = voiceURI; }
@@ -53,6 +52,8 @@ public:
bool isDefault() const { return m_default; }
void setIsDefault(bool isDefault) { m_default = isDefault; }
+ void trace(Visitor*) { }
+
private:
PlatformSpeechSynthesisVoice(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault);
PlatformSpeechSynthesisVoice();