1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef RemoteSpellcheckEngineChild_h_ 6 #define RemoteSpellcheckEngineChild_h_ 7 8 #include "mozilla/MozPromise.h" 9 #include "mozilla/PRemoteSpellcheckEngineChild.h" 10 #include "mozSpellChecker.h" 11 12 class mozSpellChecker; 13 14 namespace mozilla { 15 16 class RemoteSpellcheckEngineChild 17 : public mozilla::PRemoteSpellcheckEngineChild { 18 public: 19 explicit RemoteSpellcheckEngineChild(mozSpellChecker* aOwner); 20 virtual ~RemoteSpellcheckEngineChild(); 21 22 RefPtr<GenericPromise> SetCurrentDictionaryFromList( 23 const nsTArray<nsString>& aList); 24 25 RefPtr<CheckWordPromise> CheckWords(const nsTArray<nsString>& aWords); 26 27 private: 28 mozSpellChecker* mOwner; 29 }; 30 31 } // namespace mozilla 32 33 #endif // RemoteSpellcheckEngineChild_h_ 34