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_ClipboardWriteRequestChild_h
7 #define mozilla_ClipboardWriteRequestChild_h
9 #include "mozilla/PClipboardWriteRequestChild.h"
10 #include "nsIClipboard.h"
12 class nsITransferable
;
16 class ClipboardWriteRequestChild
: public PClipboardWriteRequestChild
,
17 public nsIAsyncSetClipboardData
{
20 NS_DECL_NSIASYNCSETCLIPBOARDDATA
22 explicit ClipboardWriteRequestChild(
23 nsIAsyncClipboardRequestCallback
* aCallback
)
24 : mCallback(aCallback
) {}
26 ipc::IPCResult
Recv__delete__(nsresult aResult
);
27 void ActorDestroy(ActorDestroyReason aReason
) override final
;
30 virtual ~ClipboardWriteRequestChild() = default;
32 void MaybeNotifyCallback(nsresult aResult
);
35 nsCOMPtr
<nsIAsyncClipboardRequestCallback
> mCallback
;
38 } // namespace mozilla
40 #endif // mozilla_ClipboardWriteRequestChild_h