gecko-dev/toolkit/components/downloads/DownloadPlatform.h

35 строки
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