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
;
15 class ClipboardReadRequestChild final
: public PClipboardReadRequestChild
{
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
; }
26 virtual ~ClipboardReadRequestChild() = default;
29 nsTArray
<nsCString
> mFlavorList
;
32 } // namespace mozilla
34 #endif // mozilla_ClipboardReadRequestChild_h