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

Unified Diff: public/web/WebSpeechRecognitionHandle.h

Issue 168963003: Make WebPrivatePtr capable of wrapping garbage collected objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Temporarily drop back to using .reset() instead of nullptr. Created 6 years, 10 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: public/web/WebSpeechRecognitionHandle.h
diff --git a/public/web/WebSpeechRecognitionHandle.h b/public/web/WebSpeechRecognitionHandle.h
index 432d8fdfcdc03d21938c042a6394d21c37aa7b9b..07d8aacfc3f98f6c26f294d38a5c0ebab66c7cf9 100644
--- a/public/web/WebSpeechRecognitionHandle.h
+++ b/public/web/WebSpeechRecognitionHandle.h
@@ -62,9 +62,9 @@ public:
BLINK_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const;
#if BLINK_IMPLEMENTATION
- WebSpeechRecognitionHandle(const WTF::PassRefPtr<WebCore::SpeechRecognition>&);
- WebSpeechRecognitionHandle& operator=(const WTF::PassRefPtr<WebCore::SpeechRecognition>&);
- operator WTF::PassRefPtr<WebCore::SpeechRecognition>() const;
+ explicit WebSpeechRecognitionHandle(const PassRefPtrWillBeRawPtr<WebCore::SpeechRecognition>&);
+ WebSpeechRecognitionHandle& operator=(const PassRefPtrWillBeRawPtr<WebCore::SpeechRecognition>&);
+ operator PassRefPtrWillBeRawPtr<WebCore::SpeechRecognition>() const;
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698