forked from mirrors/gecko-dev
Tags: #secure-revision Bug #: 1355346 Differential Revision: https://phabricator.services.mozilla.com/D3674 --HG-- extra : rebase_source : 2d128a363f21b82364562ac19c53d715eeac0d9d
37 lines
759 B
C++
37 lines
759 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef __DownloadPlatform_h__
|
|
#define __DownloadPlatform_h__
|
|
|
|
#include "mozIDownloadPlatform.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
#include "nsIThread.h"
|
|
|
|
class nsIURI;
|
|
|
|
class DownloadPlatform : public mozIDownloadPlatform
|
|
{
|
|
protected:
|
|
|
|
virtual ~DownloadPlatform() { }
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_MOZIDOWNLOADPLATFORM
|
|
|
|
DownloadPlatform();
|
|
|
|
static DownloadPlatform *gDownloadPlatformService;
|
|
|
|
static DownloadPlatform* GetDownloadPlatform();
|
|
|
|
private:
|
|
nsCOMPtr<nsIThread> mIOThread;
|
|
static bool IsURLPossiblyFromWeb(nsIURI* aURI);
|
|
};
|
|
|
|
#endif
|