Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; 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 : #ifndef nsFileProtocolHandler_h__
7 : #define nsFileProtocolHandler_h__
8 :
9 : #include "nsIFileProtocolHandler.h"
10 : #include "nsWeakReference.h"
11 :
12 : class nsFileProtocolHandler : public nsIFileProtocolHandler
13 : , public nsSupportsWeakReference
14 : {
15 0 : virtual ~nsFileProtocolHandler() {}
16 :
17 : public:
18 : NS_DECL_THREADSAFE_ISUPPORTS
19 : NS_DECL_NSIPROTOCOLHANDLER
20 : NS_DECL_NSIFILEPROTOCOLHANDLER
21 :
22 : nsFileProtocolHandler();
23 :
24 : MOZ_MUST_USE nsresult Init();
25 : };
26 :
27 : #endif // !nsFileProtocolHandler_h__
|