dom/telephony/ipc/PTelephony.ipdl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* vim: set sw=2 ts=8 et ft=cpp : */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 include protocol PContent;
     8 include protocol PTelephonyRequest;
     9 include TelephonyTypes;
    11 namespace mozilla {
    12 namespace dom {
    13 namespace telephony {
    15 struct EnumerateCallsRequest
    16 {
    17   // empty.
    18 };
    20 struct DialRequest
    21 {
    22   uint32_t clientId;
    23   nsString number;
    24   bool isEmergency;
    25 };
    27 union IPCTelephonyRequest
    28 {
    29   EnumerateCallsRequest;
    30   DialRequest;
    31 };
    33 sync protocol PTelephony {
    34   manager PContent;
    35   manages PTelephonyRequest;
    37 child:
    38   NotifyCallError(uint32_t aClientId, int32_t aCallIndex, nsString aError);
    40   NotifyCallStateChanged(uint32_t aClientId, IPCCallStateData aData);
    42   NotifyCdmaCallWaiting(uint32_t aClientId, nsString aNumber);
    44   NotifyConferenceCallStateChanged(uint16_t aCallState);
    46   NotifyConferenceError(nsString aName, nsString aMessage);
    48   NotifySupplementaryService(uint32_t aClientId, int32_t aCallIndex,
    49                              uint16_t aNotification);
    51 parent:
    52   /**
    53    * Sent when the child no longer needs to use PTelephony.
    54    */
    55   __delete__();
    57   /**
    58    * Sent when the child makes an asynchronous request to the parent.
    59    */
    60   PTelephonyRequest(IPCTelephonyRequest request);
    62   RegisterListener();
    64   UnregisterListener();
    66   HangUpCall(uint32_t aClientId, uint32_t aCallIndex);
    68   AnswerCall(uint32_t aClientId, uint32_t aCallIndex);
    70   RejectCall(uint32_t aClientId, uint32_t aCallIndex);
    72   HoldCall(uint32_t aClientId, uint32_t aCallIndex);
    74   ResumeCall(uint32_t aClientId, uint32_t aCallIndex);
    76   ConferenceCall(uint32_t aClientId);
    78   SeparateCall(uint32_t aClientId, uint32_t aCallIndex);
    80   HoldConference(uint32_t aClientId);
    82   ResumeConference(uint32_t aClientId);
    84   StartTone(uint32_t aClientId, nsString aTone);
    86   StopTone(uint32_t aClientId);
    88   sync GetMicrophoneMuted()
    89     returns (bool aMuted);
    91   SetMicrophoneMuted(bool aMuted);
    93   sync GetSpeakerEnabled()
    94     returns (bool aEnabled);
    96   SetSpeakerEnabled(bool aEnabled);
    97 };
    99 } /* namespace telephony */
   100 } /* namespace dom */
   101 } /* namespace mozilla */

mercurial