DataChannelChild.h 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  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/. */
  5. #ifndef NS_DATACHANNELCHILD_H
  6. #define NS_DATACHANNELCHILD_H
  7. #include "nsDataChannel.h"
  8. #include "nsIChildChannel.h"
  9. #include "nsISupportsImpl.h"
  10. #include "mozilla/net/PDataChannelChild.h"
  11. namespace mozilla {
  12. namespace net {
  13. class DataChannelChild : public nsDataChannel
  14. , public nsIChildChannel
  15. , public PDataChannelChild
  16. {
  17. public:
  18. explicit DataChannelChild(nsIURI *uri);
  19. NS_DECL_ISUPPORTS_INHERITED
  20. NS_DECL_NSICHILDCHANNEL
  21. protected:
  22. virtual void ActorDestroy(ActorDestroyReason why) override;
  23. private:
  24. ~DataChannelChild();
  25. void AddIPDLReference();
  26. bool mIPCOpen;
  27. };
  28. } // namespace net
  29. } // namespace mozilla
  30. #endif /* NS_DATACHANNELCHILD_H */