Bug 1889091 - Part 4: Remove extra stack pointer move. r=jandem
[gecko.git] / widget / ClipboardReadRequestChild.h
blob81d82e62961dff3c835101a963c7e993f224e4b6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_ClipboardReadRequestChild_h
7 #define mozilla_ClipboardReadRequestChild_h
9 #include "mozilla/PClipboardReadRequestChild.h"
11 class nsITransferable;
13 namespace mozilla {
15 class ClipboardReadRequestChild final : public PClipboardReadRequestChild {
16 public:
17 explicit ClipboardReadRequestChild(const nsTArray<nsCString>& aFlavorList) {
18 mFlavorList.AppendElements(aFlavorList);
21 NS_INLINE_DECL_REFCOUNTING(ClipboardReadRequestChild)
23 const nsTArray<nsCString>& FlavorList() const { return mFlavorList; }
25 protected:
26 virtual ~ClipboardReadRequestChild() = default;
28 private:
29 nsTArray<nsCString> mFlavorList;
32 } // namespace mozilla
34 #endif // mozilla_ClipboardReadRequestChild_h