dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl

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.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIDOMDOMRequest;
michael@0 8 interface nsIDOMMozMobileCFInfo;
michael@0 9 interface nsIDOMMozMobileConnectionInfo;
michael@0 10 interface nsIDOMMozMobileNetworkInfo;
michael@0 11 interface nsIDOMWindow;
michael@0 12 interface nsIVariant;
michael@0 13
michael@0 14 [scriptable, uuid(5013f5cc-24f9-45dc-ba03-f5dc031a3a6b)]
michael@0 15 interface nsIMobileConnectionListener : nsISupports
michael@0 16 {
michael@0 17 void notifyVoiceChanged();
michael@0 18 void notifyDataChanged();
michael@0 19 void notifyUssdReceived(in DOMString message,
michael@0 20 in boolean sessionEnded);
michael@0 21 void notifyDataError(in DOMString message);
michael@0 22 void notifyCFStateChange(in boolean success,
michael@0 23 in unsigned short action,
michael@0 24 in unsigned short reason,
michael@0 25 in DOMString number,
michael@0 26 in unsigned short timeSeconds,
michael@0 27 in unsigned short serviceClass);
michael@0 28 void notifyEmergencyCbModeChanged(in boolean active,
michael@0 29 in unsigned long timeoutMs);
michael@0 30 void notifyOtaStatusChanged(in DOMString status);
michael@0 31 void notifyIccChanged();
michael@0 32 void notifyRadioStateChanged();
michael@0 33 };
michael@0 34
michael@0 35 /**
michael@0 36 * XPCOM component (in the content process) that provides the mobile
michael@0 37 * network information.
michael@0 38 */
michael@0 39 [scriptable, uuid(987fc93a-e538-4fd3-9e4d-0e0f0934f019)]
michael@0 40 interface nsIMobileConnectionProvider : nsISupports
michael@0 41 {
michael@0 42 /**
michael@0 43 * Called when a content process registers receiving unsolicited messages from
michael@0 44 * RadioInterfaceLayer in the chrome process. Only a content process that has
michael@0 45 * the 'mobileconnection' permission is allowed to register.
michael@0 46 */
michael@0 47 void registerMobileConnectionMsg(in unsigned long clientId,
michael@0 48 in nsIMobileConnectionListener listener);
michael@0 49 void unregisterMobileConnectionMsg(in unsigned long clientId,
michael@0 50 in nsIMobileConnectionListener listener);
michael@0 51
michael@0 52 /**
michael@0 53 * These two fields require the 'mobilenetwork' permission.
michael@0 54 */
michael@0 55 DOMString getLastKnownNetwork(in unsigned long clientId);
michael@0 56 DOMString getLastKnownHomeNetwork(in unsigned long clientId);
michael@0 57
michael@0 58 /**
michael@0 59 * All fields below require the 'mobileconnection' permission.
michael@0 60 */
michael@0 61 nsIDOMMozMobileConnectionInfo getVoiceConnectionInfo(in unsigned long clientId);
michael@0 62 nsIDOMMozMobileConnectionInfo getDataConnectionInfo(in unsigned long clientId);
michael@0 63 DOMString getIccId(in unsigned long clientId);
michael@0 64 DOMString getNetworkSelectionMode(in unsigned long clientId);
michael@0 65 DOMString getRadioState(in unsigned long clientId);
michael@0 66 nsIVariant getSupportedNetworkTypes(in unsigned long clientId);
michael@0 67
michael@0 68 nsIDOMDOMRequest getNetworks(in unsigned long clientId,
michael@0 69 in nsIDOMWindow window);
michael@0 70 nsIDOMDOMRequest selectNetwork(in unsigned long clientId,
michael@0 71 in nsIDOMWindow window,
michael@0 72 in nsIDOMMozMobileNetworkInfo network);
michael@0 73 nsIDOMDOMRequest selectNetworkAutomatically(in unsigned long clientId,
michael@0 74 in nsIDOMWindow window);
michael@0 75
michael@0 76 nsIDOMDOMRequest setPreferredNetworkType(in unsigned long clientId,
michael@0 77 in nsIDOMWindow window,
michael@0 78 in DOMString type);
michael@0 79 nsIDOMDOMRequest getPreferredNetworkType(in unsigned long clientId,
michael@0 80 in nsIDOMWindow window);
michael@0 81
michael@0 82 nsIDOMDOMRequest setRoamingPreference(in unsigned long clientId,
michael@0 83 in nsIDOMWindow window,
michael@0 84 in DOMString mode);
michael@0 85 nsIDOMDOMRequest getRoamingPreference(in unsigned long clientId,
michael@0 86 in nsIDOMWindow window);
michael@0 87
michael@0 88 nsIDOMDOMRequest setVoicePrivacyMode(in unsigned long clientId,
michael@0 89 in nsIDOMWindow window,
michael@0 90 in bool enabled);
michael@0 91 nsIDOMDOMRequest getVoicePrivacyMode(in unsigned long clientId,
michael@0 92 in nsIDOMWindow window);
michael@0 93
michael@0 94 nsIDOMDOMRequest sendMMI(in unsigned long clientId,
michael@0 95 in nsIDOMWindow window,
michael@0 96 in DOMString mmi);
michael@0 97 nsIDOMDOMRequest cancelMMI(in unsigned long clientId,
michael@0 98 in nsIDOMWindow window);
michael@0 99
michael@0 100 nsIDOMDOMRequest getCallForwardingOption(in unsigned long clientId,
michael@0 101 in nsIDOMWindow window,
michael@0 102 in unsigned short reason);
michael@0 103 nsIDOMDOMRequest setCallForwardingOption(in unsigned long clientId,
michael@0 104 in nsIDOMWindow window,
michael@0 105 in nsIDOMMozMobileCFInfo CFInfo);
michael@0 106
michael@0 107 nsIDOMDOMRequest getCallBarringOption(in unsigned long clientId,
michael@0 108 in nsIDOMWindow window,
michael@0 109 in jsval option);
michael@0 110 nsIDOMDOMRequest setCallBarringOption(in unsigned long clientId,
michael@0 111 in nsIDOMWindow window,
michael@0 112 in jsval option);
michael@0 113 nsIDOMDOMRequest changeCallBarringPassword(in unsigned long clientId,
michael@0 114 in nsIDOMWindow window,
michael@0 115 in jsval info);
michael@0 116
michael@0 117 nsIDOMDOMRequest setCallWaitingOption(in unsigned long clientId,
michael@0 118 in nsIDOMWindow window,
michael@0 119 in bool enabled);
michael@0 120 nsIDOMDOMRequest getCallWaitingOption(in unsigned long clientId,
michael@0 121 in nsIDOMWindow window);
michael@0 122
michael@0 123 nsIDOMDOMRequest setCallingLineIdRestriction(in unsigned long clientId,
michael@0 124 in nsIDOMWindow window,
michael@0 125 in unsigned short clirMode);
michael@0 126 nsIDOMDOMRequest getCallingLineIdRestriction(in unsigned long clientId,
michael@0 127 in nsIDOMWindow window);
michael@0 128
michael@0 129 nsIDOMDOMRequest exitEmergencyCbMode(in unsigned long clientId,
michael@0 130 in nsIDOMWindow window);
michael@0 131
michael@0 132 nsIDOMDOMRequest setRadioEnabled(in unsigned long clientId, in nsIDOMWindow window, in bool enabled);
michael@0 133 };

mercurial