Bug 1885489 - Part 5: Add SnapshotIterator::readInt32(). r=iain
[gecko.git] / widget / ClipboardWriteRequestChild.h
blob078cfa07ded0b8c1bbe0b18423b99d264d789b32
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;
14 namespace mozilla {
16 class ClipboardWriteRequestChild : public PClipboardWriteRequestChild,
17 public nsIAsyncSetClipboardData {
18 public:
19 NS_DECL_ISUPPORTS
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;
29 protected:
30 virtual ~ClipboardWriteRequestChild() = default;
32 void MaybeNotifyCallback(nsresult aResult);
34 bool mIsValid = true;
35 nsCOMPtr<nsIAsyncClipboardRequestCallback> mCallback;
38 } // namespace mozilla
40 #endif // mozilla_ClipboardWriteRequestChild_h