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

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

Issue 169343002: [WIP]Add WebPrivateHeapPtr and use it for speech platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/core/speech/SpeechInputResultList.h
diff --git a/Source/core/speech/SpeechInputResultList.h b/Source/core/speech/SpeechInputResultList.h
index 3edb9d5bef0638a0a85e30a074672602d15d4bb0..a51ad9bcdea7c14c0a5f15242cd9fb7edac24136 100644
--- a/Source/core/speech/SpeechInputResultList.h
+++ b/Source/core/speech/SpeechInputResultList.h
@@ -30,19 +30,23 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/speech/SpeechInputResult.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
-class SpeechInputResultList : public RefCounted<SpeechInputResultList>, public ScriptWrappable {
+class SpeechInputResultList : public RefCountedWillBeGarbageCollectedFinalized<SpeechInputResultList>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<SpeechInputResultList> create(const SpeechInputResultArray& results);
+ static PassRefPtrWillBeRawPtr<SpeechInputResultList> create(const SpeechInputResultArray& results);
// Methods from the IDL.
size_t length() { return m_results.size(); }
SpeechInputResult* item(unsigned index);
+ void trace(Visitor *);
+
private:
explicit SpeechInputResultList(const SpeechInputResultArray& results);

Powered by Google App Engine
This is Rietveld 408576698