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

Unified Diff: public/web/WebSpeechGrammar.h

Issue 168963003: Make WebPrivatePtr capable of wrapping garbage collected objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update transition type comment 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/WebSpeechGrammar.h
diff --git a/public/web/WebSpeechGrammar.h b/public/web/WebSpeechGrammar.h
index 6c6f1379fd070ac47e8d310a5981e5e8d47fa983..88487725a7bac8ad444fd6c7c3fe5564e910fe0a 100644
--- a/public/web/WebSpeechGrammar.h
+++ b/public/web/WebSpeechGrammar.h
@@ -27,8 +27,8 @@
#define WebSpeechGrammar_h
#include "../platform/WebCommon.h"
-#include "../platform/WebPrivatePtr.h"
#include "../platform/WebURL.h"
+#include "../platform/WebWillBePrivateGarbageCollectedPtr.h"
namespace WebCore {
class SpeechGrammar;
@@ -49,12 +49,12 @@ public:
BLINK_EXPORT void assign(const WebSpeechGrammar&);
#if BLINK_IMPLEMENTATION
- WebSpeechGrammar(const WTF::PassRefPtr<WebCore::SpeechGrammar>&);
- WebSpeechGrammar& operator=(const WTF::PassRefPtr<WebCore::SpeechGrammar>&);
+ explicit WebSpeechGrammar(const PassRefPtrWillBeRawPtr<WebCore::SpeechGrammar>&);
+ WebSpeechGrammar& operator=(const PassRefPtrWillBeRawPtr<WebCore::SpeechGrammar>&);
#endif
private:
- WebPrivatePtr<WebCore::SpeechGrammar> m_private;
+ WebWillBePrivateGarbageCollectedPtr<WebCore::SpeechGrammar> m_private;
};
} // namespace blink
« Source/heap/Handle.h ('K') | « public/platform/WebWillBePrivateGarbageCollectedPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698