1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/public/nsICancelable.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:set ts=2 sw=2 sts=2 et cindent: */ 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 +/** 1.13 + * This interface provides a means to cancel an operation that is in progress. 1.14 + */ 1.15 +[scriptable, uuid(d94ac0a0-bb18-46b8-844e-84159064b0bd)] 1.16 +interface nsICancelable : nsISupports 1.17 +{ 1.18 + /** 1.19 + * Call this method to request that this object abort whatever operation it 1.20 + * may be performing. 1.21 + * 1.22 + * @param aReason 1.23 + * Pass a failure code to indicate the reason why this operation is 1.24 + * being canceled. It is an error to pass a success code. 1.25 + */ 1.26 + void cancel(in nsresult aReason); 1.27 +};