No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes ct-logs...
[gecko.git] / extensions / spellcheck / ipc / RemoteSpellCheckEngineChild.h
blob1579908f46ec63dd6d7293f43b51aadd70fcc8f5
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/. */
5 #ifndef RemoteSpellcheckEngineChild_h_
6 #define RemoteSpellcheckEngineChild_h_
8 #include "mozilla/MozPromise.h"
9 #include "mozilla/mozSpellChecker.h"
10 #include "mozilla/PRemoteSpellcheckEngineChild.h"
12 class mozSpellChecker;
14 namespace mozilla {
16 class RemoteSpellcheckEngineChild
17 : public mozilla::PRemoteSpellcheckEngineChild {
18 public:
19 explicit RemoteSpellcheckEngineChild(mozSpellChecker* aOwner);
20 virtual ~RemoteSpellcheckEngineChild();
22 RefPtr<GenericPromise> SetCurrentDictionaries(
23 const nsTArray<nsCString>& aDictionaries);
25 RefPtr<GenericPromise> SetCurrentDictionaryFromList(
26 const nsTArray<nsCString>& aList);
28 RefPtr<CheckWordPromise> CheckWords(const nsTArray<nsString>& aWords);
30 private:
31 mozSpellChecker* mOwner;
34 } // namespace mozilla
36 #endif // RemoteSpellcheckEngineChild_h_