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

Unified Diff: Source/platform/exported/WebSpeechSynthesizerClientImpl.h

Issue 339823003: Oilpan: move platform speech objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace SpeechRecognition's controller reference. Created 6 years, 6 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/platform/exported/WebSpeechSynthesizerClientImpl.h
diff --git a/Source/platform/exported/WebSpeechSynthesizerClientImpl.h b/Source/platform/exported/WebSpeechSynthesizerClientImpl.h
index 022aeaba98677e5f030b00bbb68b4b6e0f2e2bd7..c6578cbee6be1811906f6495a76bc5cce1a2bba6 100644
--- a/Source/platform/exported/WebSpeechSynthesizerClientImpl.h
+++ b/Source/platform/exported/WebSpeechSynthesizerClientImpl.h
@@ -26,21 +26,20 @@
#ifndef WebSpeechSynthesizerClientImpl_h
#define WebSpeechSynthesizerClientImpl_h
+#include "platform/heap/Handle.h"
#include "platform/speech/PlatformSpeechSynthesizer.h"
#include "public/platform/WebSpeechSynthesisUtterance.h"
#include "public/platform/WebSpeechSynthesisVoice.h"
#include "public/platform/WebSpeechSynthesizerClient.h"
-#include "wtf/HashMap.h"
-#include "wtf/Vector.h"
namespace WebCore {
class PlatformSpeechSynthesizer;
class PlatformSpeechSynthesizerClient;
-class WebSpeechSynthesizerClientImpl : public blink::WebSpeechSynthesizerClient {
+class WebSpeechSynthesizerClientImpl FINAL : public GarbageCollectedFinalized<WebSpeechSynthesizerClientImpl>, public blink::WebSpeechSynthesizerClient {
public:
- explicit WebSpeechSynthesizerClientImpl(PlatformSpeechSynthesizer*, PlatformSpeechSynthesizerClient*);
+ WebSpeechSynthesizerClientImpl(PlatformSpeechSynthesizer*, PlatformSpeechSynthesizerClient*);
virtual ~WebSpeechSynthesizerClientImpl();
virtual void setVoiceList(const blink::WebVector<blink::WebSpeechSynthesisVoice>& voices);
@@ -52,9 +51,11 @@ public:
virtual void wordBoundaryEventOccurred(const blink::WebSpeechSynthesisUtterance&, unsigned charIndex);
virtual void sentenceBoundaryEventOccurred(const blink::WebSpeechSynthesisUtterance&, unsigned charIndex);
+ void trace(Visitor*);
+
private:
- PlatformSpeechSynthesizer* m_synthesizer;
- PlatformSpeechSynthesizerClient* m_client;
+ Member<PlatformSpeechSynthesizer> m_synthesizer;
+ Member<PlatformSpeechSynthesizerClient> m_client;
};
} // namespace WebCore
« no previous file with comments | « Source/platform/exported/WebSpeechSynthesisVoice.cpp ('k') | Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698