Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 : #ifndef nsITimeoutHandler_h___
7 : #define nsITimeoutHandler_h___
8 :
9 : #include "nsISupports.h"
10 :
11 : #define NS_ITIMEOUTHANDLER_IID \
12 : { 0xb071a1d3, 0xfd54, 0x40a8, \
13 : { 0x91, 0x9f, 0xc8, 0xf3, 0x3e, 0xb8, 0x3c, 0xfe } }
14 :
15 14 : class nsITimeoutHandler : public nsISupports
16 : {
17 : public:
18 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITIMEOUTHANDLER_IID)
19 :
20 : virtual nsresult Call() = 0;
21 :
22 : virtual void GetLocation(const char** aFileName, uint32_t* aLineNo,
23 : uint32_t* aColumn) = 0;
24 :
25 : virtual void MarkForCC() = 0;
26 : };
27 :
28 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITimeoutHandler,
29 : NS_ITIMEOUTHANDLER_IID)
30 :
31 : #endif // nsITimeoutHandler_h___
|