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

Unified Diff: Source/modules/speech/testing/PlatformSpeechSynthesizerMock.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/modules/speech/testing/PlatformSpeechSynthesizerMock.h
diff --git a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
index aedc2d037dc07dc0a77eb621cca4a66eb0a42bf6..ad37336b90b1f6a1699ec564fe00c6d932906045 100644
--- a/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
+++ b/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h
@@ -27,21 +27,23 @@
#define PlatformSpeechSynthesizerMock_h
#include "platform/Timer.h"
+#include "platform/heap/Handle.h"
#include "platform/speech/PlatformSpeechSynthesizer.h"
-#include "wtf/PassOwnPtr.h"
namespace WebCore {
class PlatformSpeechSynthesizerMock FINAL : public PlatformSpeechSynthesizer {
public:
- static PassOwnPtr<PlatformSpeechSynthesizerMock> create(PlatformSpeechSynthesizerClient*);
+ static PlatformSpeechSynthesizerMock* create(PlatformSpeechSynthesizerClient*);
virtual ~PlatformSpeechSynthesizerMock();
- virtual void speak(PassRefPtr<PlatformSpeechSynthesisUtterance>) OVERRIDE;
+ virtual void speak(PlatformSpeechSynthesisUtterance*) OVERRIDE;
virtual void pause() OVERRIDE;
virtual void resume() OVERRIDE;
virtual void cancel() OVERRIDE;
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*);
virtual void initializeVoiceList() OVERRIDE;
@@ -50,7 +52,7 @@ private:
Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
Timer<PlatformSpeechSynthesizerMock> m_speakingErrorOccurredTimer;
- RefPtr<PlatformSpeechSynthesisUtterance> m_utterance;
+ Member<PlatformSpeechSynthesisUtterance> m_utterance;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/SpeechSynthesisVoice.cpp ('k') | Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698