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

Unified Diff: Source/web/WebSpeechRecognitionResult.cpp

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/web/WebSpeechRecognitionResult.cpp
diff --git a/Source/web/WebSpeechRecognitionResult.cpp b/Source/web/WebSpeechRecognitionResult.cpp
index 165cfe02afda7d96eca4e7fc973ed62f4e62d9ba..bedf8b7e6f0751738d906168f06671851ce59811 100644
--- a/Source/web/WebSpeechRecognitionResult.cpp
+++ b/Source/web/WebSpeechRecognitionResult.cpp
@@ -26,11 +26,21 @@
#include "config.h"
#include "WebSpeechRecognitionResult.h"
+#include "heap/Handle.h"
#include "modules/speech/SpeechRecognitionAlternative.h"
#include "modules/speech/SpeechRecognitionResult.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/RawPtr.h"
+#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
+// Move them into WebCore for the benefit of template aliases.
+namespace WebCore {
+using WTF::RawPtr;
+using WTF::RefPtr;
+using WTF::Vector;
+};
+
namespace blink {
void WebSpeechRecognitionResult::assign(const WebSpeechRecognitionResult& other)
@@ -42,7 +52,7 @@ void WebSpeechRecognitionResult::assign(const WebVector<WebString>& transcripts,
{
ASSERT(transcripts.size() == confidences.size());
- Vector<RefPtr<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size());
+ WebCore::WillBeHeapVector<WebCore::RefPtrWillBeMember<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size());
for (size_t i = 0; i < transcripts.size(); ++i)
alternatives[i] = WebCore::SpeechRecognitionAlternative::create(transcripts[i], confidences[i]);

Powered by Google App Engine
This is Rietveld 408576698