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

Unified Diff: Source/core/speech/SpeechInput.cpp

Issue 219273002: Use OwnPtr|PassOwnPtr to pass a pointer of SpeechInputClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/speech/SpeechInput.h ('k') | Source/core/speech/SpeechInputClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/speech/SpeechInput.cpp
diff --git a/Source/core/speech/SpeechInput.cpp b/Source/core/speech/SpeechInput.cpp
index add58591ed627a64e486b9878f418915baafa14b..03aeb1c2c5a3c61b104a20353418e3386a447ccc 100644
--- a/Source/core/speech/SpeechInput.cpp
+++ b/Source/core/speech/SpeechInput.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
-SpeechInput::SpeechInput(SpeechInputClient* client)
+SpeechInput::SpeechInput(PassOwnPtr<SpeechInputClient> client)
: m_client(client)
, m_nextListenerId(1)
{
@@ -50,7 +50,7 @@ SpeechInput::~SpeechInput()
m_client->setListener(0);
}
-PassOwnPtr<SpeechInput> SpeechInput::create(SpeechInputClient* client)
+PassOwnPtr<SpeechInput> SpeechInput::create(PassOwnPtr<SpeechInputClient> client)
{
return adoptPtr(new SpeechInput(client));
}
@@ -120,7 +120,7 @@ const char* SpeechInput::supplementName()
return "SpeechInput";
}
-void provideSpeechInputTo(Page& page, SpeechInputClient* client)
+void provideSpeechInputTo(Page& page, PassOwnPtr<SpeechInputClient> client)
{
SpeechInput::provideTo(page, SpeechInput::supplementName(), SpeechInput::create(client));
}
« no previous file with comments | « Source/core/speech/SpeechInput.h ('k') | Source/core/speech/SpeechInputClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698