michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim: set ts=8 sts=4 et sw=4 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef DomainPolicy_h__ michael@0: #define DomainPolicy_h__ michael@0: michael@0: #include "nsIDomainPolicy.h" michael@0: #include "nsTHashtable.h" michael@0: #include "nsURIHashKey.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: class DomainPolicy : public nsIDomainPolicy michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMAINPOLICY michael@0: DomainPolicy(); michael@0: virtual ~DomainPolicy(); michael@0: michael@0: private: michael@0: nsCOMPtr mBlacklist; michael@0: nsCOMPtr mSuperBlacklist; michael@0: nsCOMPtr mWhitelist; michael@0: nsCOMPtr mSuperWhitelist; michael@0: }; michael@0: michael@0: class DomainSet : public nsIDomainSet michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMAINSET michael@0: michael@0: DomainSet() {} michael@0: virtual ~DomainSet() {} michael@0: michael@0: protected: michael@0: nsTHashtable mHashTable; michael@0: }; michael@0: michael@0: } /* namespace mozilla */ michael@0: michael@0: #endif /* DomainPolicy_h__ */