|
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 public: |
|
16 NS_DECL_THREADSAFE_ISUPPORTS |
|
17 NS_DECL_NSIPROTOCOLHANDLER |
|
18 NS_DECL_NSIFILEPROTOCOLHANDLER |
|
19 |
|
20 nsFileProtocolHandler(); |
|
21 virtual ~nsFileProtocolHandler() {} |
|
22 |
|
23 nsresult Init(); |
|
24 }; |
|
25 |
|
26 #endif // !nsFileProtocolHandler_h__ |