Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)] |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * An object containing metainfo for a login stored by the login manager. |
michael@0 | 12 | * |
michael@0 | 13 | * Code using login manager can generally ignore this interface. When adding |
michael@0 | 14 | * logins, default value will be created. When modifying logins, these |
michael@0 | 15 | * properties will be unchanged unless a change is explicitly requested [by |
michael@0 | 16 | * using modifyLogin() with a nsIPropertyBag]. When deleting a login or |
michael@0 | 17 | * comparing logins, these properties are ignored. |
michael@0 | 18 | */ |
michael@0 | 19 | interface nsILoginMetaInfo : nsISupports { |
michael@0 | 20 | /** |
michael@0 | 21 | * The GUID to uniquely identify the login. This can be any arbitrary |
michael@0 | 22 | * string, but a format as created by nsIUUIDGenerator is recommended. |
michael@0 | 23 | * For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}" |
michael@0 | 24 | * |
michael@0 | 25 | * addLogin will generate a random value unless a value is provided. |
michael@0 | 26 | * |
michael@0 | 27 | * addLogin and modifyLogin will throw if the GUID already exists. |
michael@0 | 28 | */ |
michael@0 | 29 | attribute AString guid; |
michael@0 | 30 | |
michael@0 | 31 | /** |
michael@0 | 32 | * The time, in Unix Epoch milliseconds, when the login was first created. |
michael@0 | 33 | */ |
michael@0 | 34 | attribute unsigned long long timeCreated; |
michael@0 | 35 | |
michael@0 | 36 | /** |
michael@0 | 37 | * The time, in Unix Epoch milliseconds, when the login was last submitted |
michael@0 | 38 | * in a form or used to begin an HTTP auth session. |
michael@0 | 39 | */ |
michael@0 | 40 | attribute unsigned long long timeLastUsed; |
michael@0 | 41 | |
michael@0 | 42 | /** |
michael@0 | 43 | * The time, in Unix Epoch milliseconds, when the login's password was |
michael@0 | 44 | * last modified. |
michael@0 | 45 | */ |
michael@0 | 46 | attribute unsigned long long timePasswordChanged; |
michael@0 | 47 | |
michael@0 | 48 | /** |
michael@0 | 49 | * The number of times the login was submitted in a form or used to begin |
michael@0 | 50 | * an HTTP auth session. |
michael@0 | 51 | */ |
michael@0 | 52 | attribute unsigned long timesUsed; |
michael@0 | 53 | }; |