Bug 842828: Mark attributes of nsIApplicationReputationQuery as readonly, remove unused field (r=mossop)

This commit is contained in:
Monica Chew 2013-09-25 07:03:42 -07:00
Родитель 8e6e0a7c88
Коммит 7fdbdee9be
1 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@ -43,12 +43,12 @@ interface nsIApplicationReputationService : nsISupports {
* downloaded file. nsIApplicationReputationService.Start() may only be called * downloaded file. nsIApplicationReputationService.Start() may only be called
* once with a single query. * once with a single query.
*/ */
[scriptable, uuid(857da2c0-cfe5-11e2-8b8b-0800200c9a66)] [scriptable, uuid(5a054991-e489-4a1c-a0aa-ea7c69b20e3d)]
interface nsIApplicationReputationQuery : nsISupports { interface nsIApplicationReputationQuery : nsISupports {
/* /*
* The nsIURI from which the file was downloaded. This may not be null. * The nsIURI from which the file was downloaded. This may not be null.
*/ */
attribute nsIURI sourceURI; readonly attribute nsIURI sourceURI;
/* /*
* The target filename for the downloaded file, as inferred from the source * The target filename for the downloaded file, as inferred from the source
@ -56,24 +56,19 @@ interface nsIApplicationReputationQuery : nsISupports {
* is not set by the caller, it will be passed as an empty string but the * is not set by the caller, it will be passed as an empty string but the
* query won't produce any useful information. * query won't produce any useful information.
*/ */
attribute AString suggestedFileName; readonly attribute AString suggestedFileName;
/* /*
* The size of the downloaded file in bytes. * The size of the downloaded file in bytes.
*/ */
attribute unsigned long fileSize; readonly attribute unsigned long fileSize;
/* /*
* The SHA256 hash of the downloaded file in raw bytes. If this is not set by * The SHA256 hash of the downloaded file in raw bytes. If this is not set by
* the caller, it will be passed as an empty string but the query won't * the caller, it will be passed as an empty string but the query won't
* produce any useful information. * produce any useful information.
*/ */
attribute ACString sha256Hash; readonly attribute ACString sha256Hash;
/**
* The callback object listening to this query.
*/
attribute nsIApplicationReputationCallback callback;
}; };
[scriptable, function, uuid(9a228470-cfe5-11e2-8b8b-0800200c9a66)] [scriptable, function, uuid(9a228470-cfe5-11e2-8b8b-0800200c9a66)]