author Kyle Machulis <>
Fri, 29 Mar 2013 15:12:58 -0700
changeset 137136 0db3022ca2e6bec95897850f797f078464a7f529
parent 128394 44dcffe8792b49ce4ef2e6471f61e1af5ff62b5e
child 167825 f78efc36083b28661f26a3450968a34d544e0b92
permissions -rw-r--r--
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

include protocol PNecko;
include protocol PBrowser;
include URIParams;

include "SerializedLoadContext.h";

using IPC::SerializedLoadContext;

namespace mozilla {
namespace net {

protocol PWyciwygChannel
  manager PNecko;


  Init(URIParams uri);
  AsyncOpen(URIParams             originalURI,
            uint32_t              loadFlags,
            SerializedLoadContext loadContext,
            PBrowser browser);
  AppData(SerializedLoadContext loadContext, PBrowser browser);

  // methods corresponding to those of nsIWyciwygChannel
  WriteToCacheEntry(nsString data);
  CloseCacheEntry(nsresult reason);
  SetCharsetAndSource(int32_t source, nsCString charset);
  SetSecurityInfo(nsCString securityInfo);
  Cancel(nsresult status);

  OnStartRequest(nsresult  statusCode,
                 int64_t   contentLength,
                 int32_t   source,
                 nsCString charset,
                 nsCString securityInfo);

  OnDataAvailable(nsCString data,
                  uint64_t  offset);

  OnStopRequest(nsresult statusCode);

  CancelEarly(nsresult statusCode);

} // namespace net
} // namespace mozilla