/src/mozilla-central/toolkit/components/downloads/DownloadPlatform.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | | |
5 | | #ifndef __DownloadPlatform_h__ |
6 | | #define __DownloadPlatform_h__ |
7 | | |
8 | | #include "mozIDownloadPlatform.h" |
9 | | |
10 | | #include "nsCOMPtr.h" |
11 | | #include "nsIThread.h" |
12 | | |
13 | | class nsIURI; |
14 | | |
15 | | class DownloadPlatform : public mozIDownloadPlatform |
16 | | { |
17 | | protected: |
18 | | |
19 | 0 | virtual ~DownloadPlatform() { } |
20 | | |
21 | | public: |
22 | | |
23 | | NS_DECL_ISUPPORTS |
24 | | NS_DECL_MOZIDOWNLOADPLATFORM |
25 | | |
26 | | DownloadPlatform(); |
27 | | |
28 | | static DownloadPlatform *gDownloadPlatformService; |
29 | | |
30 | | static DownloadPlatform* GetDownloadPlatform(); |
31 | | |
32 | | private: |
33 | | nsCOMPtr<nsIThread> mIOThread; |
34 | | static bool IsURLPossiblyFromWeb(nsIURI* aURI); |
35 | | }; |
36 | | |
37 | | #endif |