netwerk/protocol/wyciwyg/PWyciwygChannel.ipdl

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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/. */
     5 include protocol PNecko;
     6 include protocol PBrowser;
     7 include URIParams;
    10 using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
    12 namespace mozilla {
    13 namespace net {
    15 //-------------------------------------------------------------------
    16 protocol PWyciwygChannel
    17 {
    18   manager PNecko;
    20 parent:
    21   __delete__();
    23   Init(URIParams uri);
    24   AsyncOpen(URIParams             originalURI,
    25             uint32_t              loadFlags,
    26             SerializedLoadContext loadContext,
    27             PBrowser browser);
    28   AppData(SerializedLoadContext loadContext, PBrowser browser);
    30   // methods corresponding to those of nsIWyciwygChannel
    31   WriteToCacheEntry(nsString data);
    32   CloseCacheEntry(nsresult reason);
    33   SetCharsetAndSource(int32_t source, nsCString charset);
    34   SetSecurityInfo(nsCString securityInfo);
    35   Cancel(nsresult status);
    37 child:
    38   OnStartRequest(nsresult  statusCode,
    39                  int64_t   contentLength,
    40                  int32_t   source,
    41                  nsCString charset,
    42                  nsCString securityInfo);
    44   OnDataAvailable(nsCString data,
    45                   uint64_t  offset);
    47   OnStopRequest(nsresult statusCode);
    49   CancelEarly(nsresult statusCode);
    50 };
    53 } // namespace net
    54 } // namespace mozilla

mercurial