Bug 963516 - Part 1: interface changes to support matchMvno(). f=edgar r=hsinyi
authorJessica Jong <jjong@mozilla.com>
Wed, 29 Jan 2014 07:15:00 +0800
changeset 181850 9f35f5914339326d5a11523fa353be3eb610172c
parent 181849 fbd02ed19b1ae588498c6c0416d2a28ba9859b9a
child 181851 49050bae93e695d62aa185bca0cd894b9063cb07
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs963516
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 963516 - Part 1: interface changes to support matchMvno(). f=edgar r=hsinyi
dom/icc/interfaces/nsIIccProvider.idl
dom/webidl/MozIcc.webidl
--- a/dom/icc/interfaces/nsIIccProvider.idl
+++ b/dom/icc/interfaces/nsIIccProvider.idl
@@ -3,17 +3,17 @@
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
 interface nsIDOMDOMRequest;
 interface nsIDOMMozIccInfo;
 interface nsIDOMWindow;
 
-[scriptable, uuid(87e9ad03-e8e2-40d1-bf28-a6d287c31b93)]
+[scriptable, uuid(7c0ada3d-d8d4-493e-9243-fa3df39855e4)]
 interface nsIIccListener : nsISupports
 {
   void notifyStkCommand(in DOMString aMessage);
   void notifyStkSessionEnd();
   void notifyCardStateChanged();
   void notifyIccInfoChanged();
 };
 
@@ -98,9 +98,17 @@ interface nsIIccProvider : nsISupports
   nsIDOMDOMRequest iccExchangeAPDU(in unsigned long clientId,
                                    in nsIDOMWindow window,
                                    in long channel,
                                    in jsval apdu);
 
   nsIDOMDOMRequest iccCloseChannel(in unsigned long clientId,
                                    in nsIDOMWindow window,
                                    in long channel);
+
+  /**
+   * Helpers
+   */
+  nsIDOMDOMRequest matchMvno(in unsigned long clientId,
+                             in nsIDOMWindow window,
+                             in DOMString mvnoType,
+                             in DOMString mvnoData);
 };
--- a/dom/webidl/MozIcc.webidl
+++ b/dom/webidl/MozIcc.webidl
@@ -360,9 +360,31 @@ interface MozIcc : EventTarget
    *
    * @param aid
    *        The application identifier of the applet, to be closed.
    *
    * @return a DOMRequest.
    */
   [Throws]
   nsISupports iccCloseChannel(long channel);
+
+  // Integrated Circuit Card Helpers.
+
+  /**
+   * Verify whether the passed data (matchData) matches with some ICC's field
+   * according to the mvno type (mvnoType).
+   *
+   * @param mvnoType
+   *        Mvno type to use to compare the match data.
+   *        Currently, we only support 'imsi'.
+   * @param matchData
+   *        Data to be compared with ICC's field.
+   *
+   * @return a DOMRequest.
+   *         The request's result will be a boolean indicating the matching
+   *         result.
+   *
+   * TODO: change param mvnoType to WebIDL enum after Bug 864489 -
+   *       B2G RIL: use ipdl as IPC in MozIccManager
+   */
+  [Throws]
+  nsISupports matchMvno(DOMString mvnoType, DOMString matchData);
 };