Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsISupports.idl"
7
8
/**
9
* Interface for warning about deprecated operations. Consumers should
10
* attach this interface to the channel's notification callbacks/loadgroup.
11
*/
12
[uuid(665c5124-2c52-41ba-ae72-2393f8e76c25)]
13
interface nsIDeprecationWarner : nsISupports
14
{
15
/**
16
* Issue a deprecation warning.
17
*
18
* @param aWarning a warning code as declared in nsDeprecatedOperationList.h.
19
* @param aAsError optional boolean flag indicating whether the warning
20
* should be treated as an error.
21
*/
22
void issueWarning(in uint32_t aWarning, [optional] in bool aAsError);
23
};