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

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

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make SpeechSynthesisVoice GC-finalized 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/SpeechRecognitionEvent.h
diff --git a/Source/modules/speech/SpeechRecognitionEvent.h b/Source/modules/speech/SpeechRecognitionEvent.h
index 00072b3740e33ca5b67e8ac883d6c236bcc09b7c..583c68888c0af15b9f3686b58e9ea95206dbb32a 100644
--- a/Source/modules/speech/SpeechRecognitionEvent.h
+++ b/Source/modules/speech/SpeechRecognitionEvent.h
@@ -27,6 +27,8 @@
#define SpeechRecognitionEvent_h
#include "core/events/Event.h"
+#include "heap/Handle.h"
+#include "heap/Heap.h"
#include "modules/speech/SpeechRecognitionResult.h"
#include "modules/speech/SpeechRecognitionResultList.h"
#include "wtf/RefPtr.h"
@@ -35,11 +37,13 @@ namespace WebCore {
class Document;
-struct SpeechRecognitionEventInit : public EventInit {
+class SpeechRecognitionEventInit : public EventInit {
+ DISALLOW_ALLOCATION();
+public:
SpeechRecognitionEventInit();
unsigned long resultIndex;
- RefPtr<SpeechRecognitionResultList> results;
+ RefPtrWillBeRawPtr<SpeechRecognitionResultList> results;
};
class SpeechRecognitionEvent FINAL : public Event {
@@ -64,10 +68,10 @@ public:
private:
SpeechRecognitionEvent();
SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit&);
- SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIndex, PassRefPtr<SpeechRecognitionResultList> results);
+ SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIndex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results);
unsigned long m_resultIndex;
- RefPtr<SpeechRecognitionResultList> m_results;
+ RefPtrWillBePersistent<SpeechRecognitionResultList> m_results;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698