diff --git a/content/media/webspeech/recognition/SpeechGrammarList.cpp b/content/media/webspeech/recognition/SpeechGrammarList.cpp index f8bcde24842..de092da6c19 100644 --- a/content/media/webspeech/recognition/SpeechGrammarList.cpp +++ b/content/media/webspeech/recognition/SpeechGrammarList.cpp @@ -7,6 +7,7 @@ #include "SpeechGrammarList.h" #include "mozilla/dom/SpeechGrammarListBinding.h" +#include "mozilla/ErrorResult.h" namespace mozilla { namespace dom { diff --git a/content/media/webspeech/recognition/SpeechGrammarList.h b/content/media/webspeech/recognition/SpeechGrammarList.h index 8771f4b595c..37a1bac213d 100644 --- a/content/media/webspeech/recognition/SpeechGrammarList.h +++ b/content/media/webspeech/recognition/SpeechGrammarList.h @@ -6,21 +6,24 @@ #pragma once +#include "EnableWebSpeechRecognitionCheck.h" +#include "mozilla/Attributes.h" #include "nsCOMPtr.h" #include "nsCycleCollectionParticipant.h" #include "nsWrapperCache.h" -#include "js/TypeDecls.h" -#include "mozilla/Attributes.h" -#include "mozilla/dom/BindingUtils.h" - -#include "EnableWebSpeechRecognitionCheck.h" -#include "SpeechGrammar.h" +struct JSContext; namespace mozilla { + +class ErrorResult; + namespace dom { class GlobalObject; +class SpeechGrammar; +template class Optional; + class SpeechGrammarList MOZ_FINAL : public nsISupports, public nsWrapperCache, public EnableWebSpeechRecognitionCheck