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

Unified Diff: Source/modules/speech/SpeechRecognitionResult.cpp

Issue 163493003: Revert of Move speech module over to Oilpan. (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
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResult.h ('k') | Source/modules/speech/SpeechRecognitionResult.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionResult.cpp
diff --git a/Source/modules/speech/SpeechRecognitionResult.cpp b/Source/modules/speech/SpeechRecognitionResult.cpp
index 09c58590db27c29bda8a79d585789d7d46963d22..b4bfe7d71161fd13307bf4102f69d2e9c9a85d24 100644
--- a/Source/modules/speech/SpeechRecognitionResult.cpp
+++ b/Source/modules/speech/SpeechRecognitionResult.cpp
@@ -29,13 +29,11 @@
namespace WebCore {
-DEFINE_GC_INFO(SpeechRecognitionResult);
-
SpeechRecognitionResult::~SpeechRecognitionResult()
{
}
-PassRefPtr<SpeechRecognitionResult> SpeechRecognitionResult::create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >& alternatives, bool final)
+PassRefPtr<SpeechRecognitionResult> SpeechRecognitionResult::create(const Vector<RefPtr<SpeechRecognitionAlternative> >& alternatives, bool final)
{
return adoptRef(new SpeechRecognitionResult(alternatives, final));
}
@@ -48,16 +46,11 @@
return m_alternatives[index].get();
}
-SpeechRecognitionResult::SpeechRecognitionResult(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >& alternatives, bool final)
- : m_final(final)
- , m_alternatives(alternatives)
+SpeechRecognitionResult::SpeechRecognitionResult(const Vector<RefPtr<SpeechRecognitionAlternative> >& alternatives, bool final)
+ : m_alternatives(alternatives)
+ , m_final(final)
{
ScriptWrappable::init(this);
}
-void SpeechRecognitionResult::trace(Visitor* visitor)
-{
- visitor->trace(m_alternatives);
-}
-
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResult.h ('k') | Source/modules/speech/SpeechRecognitionResult.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698