1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/storage/public/mozIStorageCompletionCallback.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ : 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +[scriptable, function, uuid(8cbf2dc2-91e0-44bc-984f-553638412071)] 1.13 +interface mozIStorageCompletionCallback : nsISupports { 1.14 + /** 1.15 + * Indicates that the event this callback was passed in for has completed. 1.16 + * 1.17 + * @param status 1.18 + * The status of the call. Generally NS_OK if the operation 1.19 + * completed successfully. 1.20 + * @param value 1.21 + * If the operation produces a result, the result. Otherwise, 1.22 + * |null|. 1.23 + * 1.24 + * @see The calling method for expected values. 1.25 + */ 1.26 + void complete(in nsresult status, [optional] in nsISupports value); 1.27 +};