nsIParentChannel.idl 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #include "nsIStreamListener.idl"
  5. interface nsITabParent;
  6. %{C++
  7. namespace mozilla {
  8. namespace net {
  9. class HttpChannelParentListener;
  10. }
  11. }
  12. %}
  13. [ptr] native HttpChannelParentListener(mozilla::net::HttpChannelParentListener);
  14. /**
  15. * Implemented by chrome side of IPC protocols.
  16. */
  17. [scriptable, uuid(e0fc4801-6030-4653-a59f-1fb282bd1a04)]
  18. interface nsIParentChannel : nsIStreamListener
  19. {
  20. /**
  21. * Called to set the HttpChannelParentListener object (optional).
  22. */
  23. [noscript] void setParentListener(in HttpChannelParentListener listener);
  24. /**
  25. * Called to notify the HttpChannelChild that tracking protection was
  26. * disabled for this load.
  27. */
  28. [noscript] void notifyTrackingProtectionDisabled();
  29. /**
  30. * Called to invoke deletion of the IPC protocol.
  31. */
  32. void delete();
  33. };