PWyciwygChannel.ipdl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* -*- Mode: C++; tab-width: 8; 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/. */
  5. include protocol PNecko;
  6. include protocol PBrowser;
  7. include URIParams;
  8. include PBackgroundSharedTypes;
  9. include PBrowserOrId;
  10. using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
  11. namespace mozilla {
  12. namespace net {
  13. //-------------------------------------------------------------------
  14. protocol PWyciwygChannel
  15. {
  16. manager PNecko;
  17. parent:
  18. async __delete__();
  19. async Init(URIParams uri,
  20. PrincipalInfo requestingPrincipalInfo,
  21. PrincipalInfo triggeringPrincipalInfo,
  22. PrincipalInfo principalToInheritInfo,
  23. uint32_t securityFlags,
  24. uint32_t contentPolicyType);
  25. async AsyncOpen(URIParams originalURI,
  26. uint32_t loadFlags,
  27. SerializedLoadContext loadContext,
  28. PBrowserOrId browser);
  29. async AppData(SerializedLoadContext loadContext, PBrowserOrId browser);
  30. // methods corresponding to those of nsIWyciwygChannel
  31. async WriteToCacheEntry(nsString data);
  32. async CloseCacheEntry(nsresult reason);
  33. async SetCharsetAndSource(int32_t source, nsCString charset);
  34. async SetSecurityInfo(nsCString securityInfo);
  35. async Cancel(nsresult status);
  36. child:
  37. async OnStartRequest(nsresult statusCode,
  38. int64_t contentLength,
  39. int32_t source,
  40. nsCString charset,
  41. nsCString securityInfo);
  42. async OnDataAvailable(nsCString data,
  43. uint64_t offset);
  44. async OnStopRequest(nsresult statusCode);
  45. async CancelEarly(nsresult statusCode);
  46. };
  47. } // namespace net
  48. } // namespace mozilla