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

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

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 | « no previous file | Source/core/speech/SpeechInput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/speech/SpeechInput.h
diff --git a/Source/core/speech/SpeechInput.h b/Source/core/speech/SpeechInput.h
index 338111ad74427c00ef2148ea95f322edd747f8f9..71b3259ef994d40e6b84495123612d1fce05bcd9 100644
--- a/Source/core/speech/SpeechInput.h
+++ b/Source/core/speech/SpeechInput.h
@@ -53,7 +53,7 @@ class SpeechInput FINAL : public SpeechInputListener, public Supplement<Page> {
public:
virtual ~SpeechInput();
- static PassOwnPtr<SpeechInput> create(SpeechInputClient*);
+ static PassOwnPtr<SpeechInput> create(PassOwnPtr<SpeechInputClient>);
static const char* supplementName();
static SpeechInput* from(Page* page) { return static_cast<SpeechInput*>(Supplement<Page>::from(page, supplementName())); }
@@ -76,9 +76,9 @@ public:
virtual void setRecognitionResult(int, const SpeechInputResultArray&) OVERRIDE;
private:
- explicit SpeechInput(SpeechInputClient*);
+ explicit SpeechInput(PassOwnPtr<SpeechInputClient>);
- SpeechInputClient* m_client;
+ OwnPtr<SpeechInputClient> m_client;
HashMap<int, SpeechInputListener*> m_listeners;
int m_nextListenerId;
};
« no previous file with comments | « no previous file | Source/core/speech/SpeechInput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698