Bumping manifests a=b2g-bump
[gecko.git] / caps / DomainPolicy.h
blob43c1726d009106247c4e16ecb3cbf121a4055be6
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"
14 namespace mozilla {
16 class DomainPolicy : public nsIDomainPolicy
18 public:
19 NS_DECL_ISUPPORTS
20 NS_DECL_NSIDOMAINPOLICY
21 DomainPolicy();
23 private:
24 virtual ~DomainPolicy();
26 nsCOMPtr<nsIDomainSet> mBlacklist;
27 nsCOMPtr<nsIDomainSet> mSuperBlacklist;
28 nsCOMPtr<nsIDomainSet> mWhitelist;
29 nsCOMPtr<nsIDomainSet> mSuperWhitelist;
32 class DomainSet : public nsIDomainSet
34 public:
35 NS_DECL_ISUPPORTS
36 NS_DECL_NSIDOMAINSET
38 DomainSet() {}
40 protected:
41 virtual ~DomainSet() {}
42 nsTHashtable<nsURIHashKey> mHashTable;
45 } /* namespace mozilla */
47 #endif /* DomainPolicy_h__ */