Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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 downloadmanager___h___
7 : #define downloadmanager___h___
8 :
9 : #include "nsIDownloadManager.h"
10 : #include "nsIDownloadProgressListener.h"
11 : #include "nsIFile.h"
12 : #include "nsIStringBundle.h"
13 : #include "nsISupportsPrimitives.h"
14 : #include "nsString.h"
15 :
16 : class nsDownloadManager final : public nsIDownloadManager
17 : {
18 : public:
19 : NS_DECL_ISUPPORTS
20 : NS_DECL_NSIDOWNLOADMANAGER
21 :
22 : nsresult Init();
23 :
24 : static nsDownloadManager *GetSingleton();
25 :
26 0 : nsDownloadManager()
27 0 : {
28 0 : }
29 :
30 : protected:
31 : virtual ~nsDownloadManager();
32 :
33 : private:
34 : nsCOMPtr<nsIStringBundle> mBundle;
35 :
36 : static nsDownloadManager *gDownloadManagerService;
37 : };
38 :
39 : #endif
|