Chromium Code Reviews| Index: Source/web/WebSpeechRecognitionResult.cpp |
| diff --git a/Source/web/WebSpeechRecognitionResult.cpp b/Source/web/WebSpeechRecognitionResult.cpp |
| index 165cfe02afda7d96eca4e7fc973ed62f4e62d9ba..5e1e268d9e66bbfbe408b69b30fb5505665951d4 100644 |
| --- a/Source/web/WebSpeechRecognitionResult.cpp |
| +++ b/Source/web/WebSpeechRecognitionResult.cpp |
| @@ -26,11 +26,20 @@ |
| #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. |
|
haraken
2014/02/12 05:18:45
Agreed.
|
| +namespace WebCore { |
| +using WTF::RawPtr; |
| +using WTF::RefPtr; |
| +}; |
| + |
| namespace blink { |
| void WebSpeechRecognitionResult::assign(const WebSpeechRecognitionResult& other) |
| @@ -42,7 +51,7 @@ void WebSpeechRecognitionResult::assign(const WebVector<WebString>& transcripts, |
| { |
| ASSERT(transcripts.size() == confidences.size()); |
| - Vector<RefPtr<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size()); |
| + Vector<WebCore::RefPtrWillBeRawPtr<WebCore::SpeechRecognitionAlternative> > alternatives(transcripts.size()); |
| for (size_t i = 0; i < transcripts.size(); ++i) |
| alternatives[i] = WebCore::SpeechRecognitionAlternative::create(transcripts[i], confidences[i]); |