Index: Source/modules/speech/SpeechRecognitionController.h |
diff --git a/Source/modules/speech/SpeechRecognitionController.h b/Source/modules/speech/SpeechRecognitionController.h |
index 9d9078f34d9a805658d796e9c041fd3e5b413327..4e430660c08a08c242ada5508675323a07619767 100644 |
--- a/Source/modules/speech/SpeechRecognitionController.h |
+++ b/Source/modules/speech/SpeechRecognitionController.h |
@@ -44,14 +44,14 @@ public: |
void stop(SpeechRecognition* recognition) { m_client->stop(recognition); } |
void abort(SpeechRecognition* recognition) { m_client->abort(recognition); } |
- static PassOwnPtr<SpeechRecognitionController> create(SpeechRecognitionClient*); |
+ static PassOwnPtr<SpeechRecognitionController> create(PassOwnPtr<SpeechRecognitionClient>); |
static const char* supplementName(); |
static SpeechRecognitionController* from(Page* page) { return static_cast<SpeechRecognitionController*>(Supplement<Page>::from(page, supplementName())); } |
private: |
- explicit SpeechRecognitionController(SpeechRecognitionClient*); |
+ explicit SpeechRecognitionController(PassOwnPtr<SpeechRecognitionClient>); |
- SpeechRecognitionClient* m_client; |
+ OwnPtr<SpeechRecognitionClient> m_client; |
}; |
} // namespace WebCore |