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

Unified Diff: Source/modules/speech/SpeechRecognitionResultList.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: Source/modules/speech/SpeechRecognitionResultList.h
diff --git a/Source/modules/speech/SpeechRecognitionResultList.h b/Source/modules/speech/SpeechRecognitionResultList.h
index f209370a86c575959f731cca1c78dd33d294bcbc..518ce33375c97dd76ff2ca7fd68893db9e2099e5 100644
--- a/Source/modules/speech/SpeechRecognitionResultList.h
+++ b/Source/modules/speech/SpeechRecognitionResultList.h
@@ -37,7 +37,7 @@ namespace WebCore {
class SpeechRecognitionResultList : public RefCountedWillBeGarbageCollectedFinalized<SpeechRecognitionResultList>, public ScriptWrappable {
DECLARE_GC_INFO;
public:
- static PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> create(const Vector<RefPtr<SpeechRecognitionResult> >&);
+ static PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >&);
unsigned long length() { return m_results.size(); }
SpeechRecognitionResult* item(unsigned long index);
@@ -45,7 +45,7 @@ public:
void trace(Visitor*);
private:
- explicit SpeechRecognitionResultList(const Vector<RefPtr<SpeechRecognitionResult> >&);
+ explicit SpeechRecognitionResultList(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >&);
WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_results;
};

Powered by Google App Engine
This is Rietveld 408576698