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
parent 62cd48c21c
commit 92d19af51a

View File

@ -43,12 +43,12 @@ interface nsIApplicationReputationService : nsISupports {
* downloaded file. nsIApplicationReputationService.Start() may only be called
* once with a single query.
*/
[scriptable, uuid(857da2c0-cfe5-11e2-8b8b-0800200c9a66)]
[scriptable, uuid(5a054991-e489-4a1c-a0aa-ea7c69b20e3d)]
interface nsIApplicationReputationQuery : nsISupports {
/*
* 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
@ -56,24 +56,19 @@ interface nsIApplicationReputationQuery : nsISupports {
* is not set by the caller, it will be passed as an empty string but the
* query won't produce any useful information.
*/
attribute AString suggestedFileName;
readonly attribute AString suggestedFileName;
/*
* 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 caller, it will be passed as an empty string but the query won't
* produce any useful information.
*/
attribute ACString sha256Hash;
/**
* The callback object listening to this query.
*/
attribute nsIApplicationReputationCallback callback;
readonly attribute ACString sha256Hash;
};
[scriptable, function, uuid(9a228470-cfe5-11e2-8b8b-0800200c9a66)]