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

Unified Diff: Source/modules/speech/SpeechRecognitionController.h

Issue 217323011: Apply OwnPtr|PassOwnPtr to handle member variables and arguments in SpeechRecognitionClient|Control… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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
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
« no previous file with comments | « Source/modules/speech/SpeechRecognitionClient.h ('k') | Source/modules/speech/SpeechRecognitionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698