1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim: set ts=8 sts=4 et sw=4 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DomainPolicy_h__
8 #define DomainPolicy_h__
10 #include "nsIDomainPolicy.h"
11 #include "nsTHashtable.h"
12 #include "nsURIHashKey.h"
16 class DomainPolicy
: public nsIDomainPolicy
20 NS_DECL_NSIDOMAINPOLICY
24 virtual ~DomainPolicy();
26 nsCOMPtr
<nsIDomainSet
> mBlacklist
;
27 nsCOMPtr
<nsIDomainSet
> mSuperBlacklist
;
28 nsCOMPtr
<nsIDomainSet
> mWhitelist
;
29 nsCOMPtr
<nsIDomainSet
> mSuperWhitelist
;
32 class DomainSet
: public nsIDomainSet
41 virtual ~DomainSet() {}
42 nsTHashtable
<nsURIHashKey
> mHashTable
;
45 } /* namespace mozilla */
47 #endif /* DomainPolicy_h__ */