Bug 1182966 - Part 3: Add some final annotations to DomainSet. r=mrbkap
authorAndrew McCreight <continuation@gmail.com>
Tue, 14 Jul 2015 07:59:00 -0400
changeset 279095 20e4f7dcee9cade91490699efc2c61e62b65e44d
parent 279094 7de43f04cd0a68453f047897ae3255af85b53823
child 279096 16b99cdb36fb8196a2630afe21ce83422eba6e26
push id3577
push userkchen@mozilla.com
push dateFri, 17 Jul 2015 03:58:51 +0000
reviewersmrbkap
bugs1182966
milestone42.0a1
Bug 1182966 - Part 3: Add some final annotations to DomainSet. r=mrbkap
caps/DomainPolicy.h
--- a/caps/DomainPolicy.h
+++ b/caps/DomainPolicy.h
@@ -28,17 +28,17 @@ enum DomainSetChangeType{
 enum DomainSetType{
     NO_TYPE,
     BLACKLIST,
     SUPER_BLACKLIST,
     WHITELIST,
     SUPER_WHITELIST
 };
 
-class DomainSet : public nsIDomainSet
+class DomainSet final : public nsIDomainSet
 {
 public:
     NS_DECL_ISUPPORTS
     NS_DECL_NSIDOMAINSET
 
     explicit DomainSet(DomainSetType aType)
         : mType(aType)
     {}
@@ -46,17 +46,17 @@ public:
     void CloneSet(InfallibleTArray<mozilla::ipc::URIParams>* aDomains);
 
 protected:
     virtual ~DomainSet() {}
     nsTHashtable<nsURIHashKey> mHashTable;
     DomainSetType mType;
 };
 
-class DomainPolicy : public nsIDomainPolicy
+class DomainPolicy final : public nsIDomainPolicy
 {
 public:
     NS_DECL_ISUPPORTS
     NS_DECL_NSIDOMAINPOLICY
     DomainPolicy();
 
 private:
     virtual ~DomainPolicy();